[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor
it seems something like the user ernie doesn't exists. maybe is "ernie" the user involved in the subsequent task? or maybe it is "participant", that I see resolves to "ernie" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067021#4067021 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067021 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor
1. In the last task, you do assign ernie as actor...Does ernie exist in your db? 2. You shouldn't signal processInstance. Try it only with taskInstance.end View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066573#4066573 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066573 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor
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]
[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor
i have just cleared this option. i didn't use it . View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066539#4066539 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066539 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor
Hi, How ? Regards, O.M. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066244#4066244 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066244 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor
resolved View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066243#4066243 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066243 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor
yes, duedate is optional. But afaik if you set it to "" a exception due to incorrect format is thrown. I already had the same problem. Did you try it without? Seems like a bug to me...Does anyone know if this is an already known problem? JIRA created? JIRA necessary? Or is this correct behaviour? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066173#4066173 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066173 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor
this is my processdefinition: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | duedate is it an optional entry ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066147#4066147 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066147 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor
Would you post your process definition? anonymous wrote : javax.servlet.ServletException: improper format of duration '' Seems that you have set some scheduler improperly...e.g. a duedate on your task with value "" like . View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066135#4066135 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066135 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor
thank for your response. i tried by using processinstance and taskinstance like this: | ProcessInstance processInstance=new ProcessInstance(processDefinition); | System.out.println("processinstance.id: "+processInstance.getId()); | System.out.println("processinstance.version: "+processInstance.getVersion()); | | TaskInstance taskInstance=processInstance.getTaskMgmtInstance().createStartTaskInstance(); | taskInstance.setActorId(jbpmContext.getActorId()); | but i have this error: anonymous wrote : | javax.servlet.ServletException: improper format of duration '' | org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535) | org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433) | org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) | org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) | org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) | javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085) | org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398) | org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241) | org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) | org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) | javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | | root cause | | java.lang.IllegalArgumentException: improper format of duration '' | org.jbpm.calendar.Duration.(Duration.java:151) | org.jbpm.taskmgmt.exe.TaskInstance.setTask(TaskInstance.java:117) | org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:113) | org.jbpm.taskmgmt.exe.TaskMgmtInstance.createStartTaskInstance(TaskMgmtInstance.java:283) | com.WebApplicationWithJbpm.actions.FirstTask.performAction(FirstTask.java:44) | com.WebApplicationWithJbpm.actions.BaseAction.execute(BaseAction.java:17) | org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) | org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) | org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) | org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) | javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085) | org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398) | org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241) | org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) | org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) | javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | | what that means ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066110#4066110 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066110 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor
Hi, TaskMgmtSession.findTaskInstancesByActorId("username"); can be used. OR u can get all the task list by using processinstance also View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066093#4066093 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066093 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user