Job Table Lines deleted When process reaches one of multiple ends

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2015 05:51 AM
Hello.
I'm trying to implement a mechanism that shows each activiti task and it's state (before running/ while/ after/ failed)
The failed activities are those which are active but has 0 retries.
I retrieve this information using management service -
managementService.createJobQuery().processInstanceId(<processInstanceId>).withException();
I tested it on several scenarios with parallel execution:
1.start-> parallel gateway ->two parallel scripts(good script and bad script)->end
2.start-> parallel gateway ->two parallel scripts (good script and bad script)->parallel gateway ->end
3.start-> parallel gateway ->two parallel scripts (good script and bad script)->each script reaches different end
The result is not what i expected:
scenario 2 is good (i can retrieve the failed jobs) but 1 and 3 shows no data in the job table.
according to the documentation process finishes when all executions reach the all ends.
The question is:
does any one have an explanation for that?
Is this an activiti bug?
Thanks.
I'm trying to implement a mechanism that shows each activiti task and it's state (before running/ while/ after/ failed)
The failed activities are those which are active but has 0 retries.
I retrieve this information using management service -
managementService.createJobQuery().processInstanceId(<processInstanceId>).withException();
I tested it on several scenarios with parallel execution:
1.start-> parallel gateway ->two parallel scripts(good script and bad script)->end
2.start-> parallel gateway ->two parallel scripts (good script and bad script)->parallel gateway ->end
3.start-> parallel gateway ->two parallel scripts (good script and bad script)->each script reaches different end
The result is not what i expected:
scenario 2 is good (i can retrieve the failed jobs) but 1 and 3 shows no data in the job table.
according to the documentation process finishes when all executions reach the all ends.
The question is:
does any one have an explanation for that?
Is this an activiti bug?
Thanks.
Labels:
- Labels:
-
Archive
10 REPLIES 10

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2015 09:47 AM
Although the process definition is valid bpmn, the best practice is to always add a join parallel gateway. But I agree it should not happen. The priority of this issue is not high though, because it's not best practice BPMN.
Best regards,
Best regards,
