0 Replies Latest reply on Oct 9, 2007 7:43 AM by Thomas Brough

    Delegation Class Problems

    Thomas Brough Newbie

      I have desgined a very small workflow using eclipse. I have incorporated an assignment class to delegate a task to a particular user. All micky mouse stuff but I am getting the following in JBOSS log

      ERROR [Delegation] couldn't load delegation class ''

      and this from the web page :-

      Error starting process: An exception of type "org.jbpm.graph.def.DelegationException" was thrown.

      Now this is my processdefinition.xml

      <?xml version="1.0" encoding="UTF-8"?>

      <swimlane name="initiator">
      <assignment class=""></assignment>
      <swimlane name="ITManager">
      <assignment class=""></assignment>
      <start-state name="start">
      <transition name="transition1" to="getDetails"></transition>
      <end-state name="end"></end-state>
      <task-node name="getDetails">
      <task name="getDetails" swimlane="initiator"></task>
      <transition name="Transition2" to="Check Form">
      <task-node name="Check Form">
      <task name="ITManagerFormCheck">
      <assignment class="uk.gov.torbay.it01.jbpm.ITManagerAssignment">
      <transition name="Transition3" to="end"></transition>

      and this is the source of my uk.gov.torbay.it01.jbpm.ITManager Assignment class.

      package uk.gov.torbay.it01.jbpm;

      import org.jbpm.graph.exe.*;
      import org.jbpm.taskmgmt.def.*;
      import org.jbpm.taskmgmt.exe.Assignable;

      public class ITManagerAssignment implements AssignmentHandler {

      private static final long serialVersionUID = 1L;

      private String actor;

      public ITManagerAssignment()
      public void assign(Assignable assignable, ExecutionContext executionContext) {
      public String getActor() {
      return actor;
      public void setActor(String actor) {
      this.actor = actor;


      From the above error It would appear I have a parsing problem with the processdefinition.xml file since it seems to be trying to load a null class path/name.

      Anyone got any ideas where I am going wrong here ?

      The Eclipse deploy seems to indicate everything is ok so I am not sure whate to believe here.