[JBoss jBPM] - Re: jBPM4 - Task Escalation with Timer
by djcye
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();
| b.assignee("peter");
| List<Task> c = b.list();
| System.out.println(c.size());
|
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@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
and
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
and
Caused by: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.jbpm.pvm.internal.m
| odel.ExecutionImpl#75]
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
16 years, 7 months
[JBoss jBPM] - What is the status of PVM in JBPM?
by dinosaurus
I'd like to ask about the current status of the PVM project. Currently it seems like there is no separate PVM project and all PVM sources reside under JBPM trunk. Could you please provide more information on how the PVM is positioned now? Is it possible to use PVM separately from JBPM?
Actually I've succeeded in creating PVM based process using the API in JBPM 4.0 (see below). But I'm concerned about the classes I had to use. Some of them are in the "internal" package of org.jbpm.pvm and I'd like to know if I can rely on them in future.
| ClientProcessDefinition processDefinition =
| ProcessDefinitionBuilder.startProcess("process1").
| startActivity("start", new Behaviour()).initial().transition("review", "to_review").endActivity().
| startActivity("review", new Behaviour()).transition("end", "to_end").endActivity().
| startActivity("end", new Behaviour()).endProcess();
|
| ClientProcessInstance procInst = processDefinition.startProcessInstance();
| procInst.signal();
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250657#4250657
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250657
16 years, 7 months