[jboss-user] [JBoss jBPM] - Re: jBPM4 - Task Escalation with Timer
do-not-reply at jboss.com
Thu Aug 20 10:35:18 EDT 2009
i studied the docs and the only way to assign tasks is through the TaskService or the assignmentHandler. i tried to put the assignmenthandler inside a "timeout event" section but that isnt valide.
well i also tried to use the eventhandler approach (to use the TaskService) without success. All TaskQuerys result in 0. Testet the same TaskQuery from a EJB Web-Service and it showed more than 0, so its not the querys fault ^^". perhaps this kind of operations is not supported from inside the handlers.
so the only option i see is to put the
| InitialContext ctx = new InitialContext();
| ProcessEngine processEngine =(ProcessEngine)ctx.lookup("java:/ProcessEngine");
| TaskService taskService = processEngine.getTaskService();
| TaskQuery b = taskService.createTaskQuery();
| List<Task> c = b.list();
one additional question: if i use a transition timer inside a task node and the timer fires. will the task be completed / deleted ?
i tried to figure it out on the server. after the timer fires the task still remains in the assigned groups but cant be claimed anymore. exceptions when trying to claim:
16:17:22,953 INFO [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.AssignTaskCm
| d at 7aba71
| org.jbpm.api.JbpmException: task 55 does not exist
actualy task 55 realy doesnt exist. the taskid i try to claim is 59 O_o
16:27:02,218 ERROR [[Resteasy]] Servlet.service() for servlet Resteasy threw exception
| org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Unexpected invocation exception: null
Caused by: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.jbpm.pvm.internal.m
well i think the task gets deleted. but i am not sure.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250662#4250662
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250662
More information about the jboss-user