Wrong script task listener executed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2016 05:10 AM
We face a really annoying bug with activiti.
We use version 5.13 of activiti.
Here is the bug scenario (see bpmn here: https://drive.google.com/file/d/0BxxZafFzNUQdV1JGSnRUZ242SnM/view?usp=sharing for activity references) :
The process instance is in the usertask31 activity. The user does action for going out of this task and going into servicetask1.
This causes an error that says : "No outgoing sequence flow of the exclusive gateway 'exclusivegateway35' could be selected for continuing the process".
The bug appears randomly. When the bug occurs, a restart of alfresco resolves the problem.
After some analysis and adding some logs in activiti engine code, we found that in fact a wrong listener seems to be executed : The complete-event listener attached to task usertask23 is executed instead of the complete-event listener of task usertask31.
Our listeners are implemented by alfresco script task listener (org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener).
We check forums and activiti release notes about such a bug but with no result.
Do you have any idea about this bug ?
Do you think that a wrong task-listener association could be done (randomly!) ?
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2016 04:27 AM
The fact you say this is happening 'randomly' means that at that point your data is different and evaluates to false. In the other cases, it evaluates to true for one of the expressions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2016 05:00 AM
So, do you think that a wrong task-listener association could be done (randomly!) ?
Have you ever heard of such a bug?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2016 08:12 AM
I never seen or even heard about this behaviour but would be nice if you could provide a unit test to reproduce this behaviour. (it would be a good starting point of investigation)
Considering that Activiti 5.13 is more than 2 years old, did you test it with a more recent version of Activiti ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2016 07:14 AM
I make unit test in order to reproduce the problem. But I face some problem to run unit test on my workflow. As I said, I use some alfresco component (e.g. alfresco ScriptTaskListener). This causes exception when running test.
How could I configure activiti unit test to be able to run it on a workflow containing alfresco component ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2016 04:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2016 04:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2016 06:07 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2016 10:59 AM
We faced same problem on production server. Configuration: alfresco version 4.2.4, activiti version 5.13-alf-20140708.
We have 600 everyday active users. Sometimes complete task listeners aren't execute and process's behavior goes incorrect.
After restart system behaves normally, but then problem appears again in other process instances.
We can't reproduce this problem on unit tests.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2016 10:01 AM
The same issue…
