[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor
galvino
do-not-reply at jboss.com
Mon Jul 23 03:30:23 EDT 2007
hi, i have another problem.
into the last task, when i added taskInstance.end();
in this code:
| GraphSession graphSession=jbpmContext.getGraphSession();
| TaskMgmtSession taskMgmtSession=jbpmContext.getTaskMgmtSession();
|
| jbpmContext.setActorId("martin");
|
| ProcessInstance processInstance=graphSession.getProcessInstance(34);
|
| TaskInstance taskInstance=(TaskInstance) taskMgmtSession.findTaskInstances(jbpmContext.getActorId()).iterator().next();
| System.out.println("taskinstance_actor: "+taskInstance.getActorId());
| System.out.println("taskinstance: "+taskInstance.getName());
| taskInstance.setVariable("decision","yes");
| System.out.println("taskinstance_priority: "+taskInstance.getPriority());
| System.out.println("taskinstance_Id: "+taskInstance.getId());
| taskInstance.end();
|
| jbpmContext.save(processInstance);
| processInstance.signal();
|
i have this error:
anonymous wrote :
| 2007-07-23 09:20:12,388 ERROR [STDERR] org.jbpm.graph.def.DelegationException: couldn't resolve assignment expression 'user(ernie)'
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:214)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskMgmtInstance.getInitializedSwimlaneInstance(TaskMgmtInstance.java:182)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskMgmtInstance$$FastClassByCGLIB$$e1d53490.invoke()
| 2007-07-23 09:20:12,388 ERROR [STDERR] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskMgmtInstance$$EnhancerByCGLIB$$7662fcc2.getInitializedSwimlaneInstance()
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskInstance.assign(TaskInstance.java:192)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:154)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskMgmtInstance$$FastClassByCGLIB$$e1d53490.invoke()
| 2007-07-23 09:20:12,388 ERROR [STDERR] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskMgmtInstance$$EnhancerByCGLIB$$7662fcc2.createTaskInstance()
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.graph.node.TaskNode.execute(TaskNode.java:168)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.graph.def.Node.enter(Node.java:318)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
| 2007-07-23 09:20:12,388 ERROR [STDERR] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$abec2600.enter()
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.graph.def.Transition.take(Transition.java:151)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.graph.def.Node.leave(Node.java:393)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
| 2007-07-23 09:20:12,388 ERROR [STDERR] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$abec2600.leave()
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.graph.exe.Token.signal(Token.java:194)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.graph.exe.Token.signal(Token.java:139)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.graph.exe.Token$$FastClassByCGLIB$$74df1c6e.invoke()
| 2007-07-23 09:20:12,388 ERROR [STDERR] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$db45937c.signal()
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:476)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:390)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at com.WebApplicationWithJbpm.actions.FourthTask.performAction(FourthTask.java:41)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at com.WebApplicationWithJbpm.actions.BaseAction.execute(BaseAction.java:17)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| 2007-07-23 09:20:12,388 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 2007-07-23 09:20:12,404 ERROR [STDERR] Caused by: org.jbpm.identity.assignment.ExpressionAssignmentException: couldn't resolve assignment expression 'user(ernie)'
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.jbpm.identity.assignment.ExpressionAssignmentHandler.assign(ExpressionAssignmentHandler.java:97)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignmentDelegation(TaskMgmtInstance.java:226)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:199)
| 2007-07-23 09:20:12,404 ERROR [STDERR] ... 84 more
| 2007-07-23 09:20:12,404 ERROR [STDERR] Caused by: org.jbpm.identity.assignment.ExpressionAssignmentException: user 'ernie' couldn't be fetched from the user db
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.jbpm.identity.assignment.ExpressionAssignmentHandler.getUserByName(ExpressionAssignmentHandler.java:209)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.jbpm.identity.assignment.ExpressionAssignmentHandler.resolveFirstTerm(ExpressionAssignmentHandler.java:147)
| 2007-07-23 09:20:12,404 ERROR [STDERR] at org.jbpm.identity.assignment.ExpressionAssignmentHandler.assign(ExpressionAssignmentHandler.java:75)
| 2007-07-23 09:20:12,404 ERROR [STDERR] ... 86 more
|
i don't undersand this issue beacause i don't set ernie like user of this task.
i want to end task in order to end process.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066548#4066548
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066548
More information about the jboss-user
mailing list