1 Reply Latest reply on Mar 16, 2006 3:27 PM by Ronald van Kuijk

    reg: delegation exception

    Vishwanath Gorthi Newbie

      Hi all,
      I have recently started using jbpm, I am integrating struts with jbpm.

      I get following error:
      javax.servlet.ServletException
      org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
      org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


      root cause

      org.jbpm.graph.def.DelegationException
      org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:299)
      org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:293)
      org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:293)
      org.jbpm.taskmgmt.exe.TaskMgmtInstance.invokeAssignmentHandler(TaskMgmtInstance.java:149)
      org.jbpm.taskmgmt.exe.TaskMgmtInstance.getInitializedSwimlaneInstance(TaskMgmtInstance.java:131)
      org.jbpm.taskmgmt.exe.TaskInstance.assign(TaskInstance.java:131)
      org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:102)
      org.jbpm.graph.node.TaskNode.execute(TaskNode.java:136)
      org.jbpm.graph.def.Node.enter(Node.java:284)
      org.jbpm.graph.def.Transition.take(Transition.java:92)
      org.jbpm.graph.def.Node.leave(Node.java:349)
      org.jbpm.graph.node.StartState.leave(StartState.java:73)
      org.jbpm.graph.exe.Token.signal(Token.java:127)
      org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:354)
      org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:302)
      com.eao.jbpm.JbpmTest.close(JbpmTest.java:299)
      com.eao.jbpm.JbpmTest.saveAndClose(JbpmTest.java:290)
      com.eao.actions.SubmitRequisition.execute(SubmitRequisition.java:53)
      org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

      on following code when executing taskInstance.end()

      public void close(long taskInstanceId)
      {
      jbpmSession=sessionFactory.openJbpmSession();
      jbpmSession.beginTransaction();

      TaskInstance taskInstance = jbpmSession.getTaskMgmtSession().loadTaskInstance(taskInstanceId);
      taskInstance.end();

      jbpmSession.getGraphSession().saveProcessInstance(taskInstance.getTaskMgmtInstance().getProcessInstance());
      jbpmSession.commitTransaction();
      jbpmSession.close();
      }

      plz help

      My processdefinition.xml looks like this:
      <process-definition name="eAODemo">









      <start-state name="start">



      >



      </start-state>
      <task-node name="task1">





      </task-node>
      <task-node name="task2">


      </task-node>
      <end-state name="end1" />
      </process-definition>