Job Table Lines deleted When process reaches one of multiple ends

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2015 05:51 AM
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:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2015 11:09 AM
if so please upload it here.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2015 12:18 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2015 03:47 AM
At what moment are you executing the job query?
Did you check if the process instance was ended completely as well?
Best regards,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2015 07:59 AM
After eliminating a lot of the factors i discovered what i think is a regression:
i'm wrote a basic process with start->parallel gateway-> two identical "hello world" script -> two ends
i'm deploying two different processes: one is a untouched and on the other i'm adding the parameter: activiti:async="true"
this parameter is absent when i create a process through the activiti-explorer, although i marked async as true on the gui.
The results are that the one with the async parameter get's stuck on one of the scripts. It's job is deleted from the table.
THIS HAPPENS on activiti 5.17.0 but not with activiti 5.12
So it looks like a regression.
Am I correct or is there some change I'm missing?
I'm attaching both processes - with and without the async parameter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2015 04:04 AM
What do you mean with 'stuck'?
Are you sure the job executor is enabled? That Groovy is on the classpath?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2015 08:57 AM
groovy is not the issue - you can see if you try running the examples that both scripts are identical and without the "async" parameter scripts are working.
from what i see, when you try running the workflow with the "async" param- once one of the executions reaches an end task - all jobs that are related to the process are deleted (although process still exist).
it reproduces easily with the examples attached earlier

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2015 09:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2015 10:11 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2015 10:34 AM
