[JBoss jBPM] - Not getting TaskEndLog when canceling the TaskInstance
by vikas_khengare22
Hi Friends,
I am not getting TaskEndLog when I am canceling the TaskInstance bye TaskInstance.cancel() method.
Here is what I am doing,
TaskMgmtInstance tmi = i_token.getProcessInstance().getTaskMgmtInstance();
| Collection<TaskInstance> unfinishedTasks = tmi.getUnfinishedTasks(i_token);
| for (TaskInstance task : unfinishedTasks) {
| task.cancel();
| }
& to get log
LoggingSession logSession = context.getLoggingSession();
| Collection<ProcessLog> logs = logSession.findLogsByToken(process.getRootToken().getId());
| for (ProcessLog processLog : logs) {
| if (processLog.getClass().equals( org.jbpm.taskmgmt.log.TaskEndLog.class)) {
| System.out.println("Task is ENDED");
| }
| }
If I have 5 steps in process and I have canceled the task on 4th step, then I am getting TaskEndLog for first 3 steps but NOT for 4th step in which I have canceled the task.
On 4th step only TaskCreateLog event is firing but not TaskEndLog and as per documentation it should end the task. (that means it should fire TaskEndLog in jbpm_log table).
Thanks
regards
Vikas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204876#4204876
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204876
17 years, 2 months
Embed jBPM in our application without database
by mai.sun@nordea.com
Hi all,
I'm new to jBPM and I'm trying to figure out how to invoke a jBPM
workflow defined in a jpdl.xml file without using database, the version
I'm currently using is jBPM 4-alpha. In the developer's guide there is
an introduction to object execution mode and the example shows how to
build a jBPM workflow defination from Java code, my question is if it's
possible to build a workflow def from an xml instead in object execution
mode so that I can avoid creating a database?
Any suggestion is appreciated.
Best wishes,
Mai Sun
17 years, 2 months