Error on Multiinstance with 0 iterations

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2015 10:02 AM
Hi!
I'm having some problems with multiinstace sub-process/task when it collection is empty and "isSequential" is false.
I have isolated the case with this:
It throws this exception when you try to start a process:
But It works fine when "isSequential" is true, why?
Thanks!
I'm having some problems with multiinstace sub-process/task when it collection is empty and "isSequential" is false.
I have isolated the case with this:
<process id="myProcess" name="My process" isExecutable="true"> <startEvent id="startevent1" name="Start"></startEvent> <userTask id="userTask" name="userTask" activiti:assignee="user"></userTask> <endEvent id="endevent1" name="End"></endEvent> <sequenceFlow id="flow5" sourceRef="userTask" targetRef="endevent1"></sequenceFlow> <userTask id="multiInstanceTask" name="multiInstanceTask"> <multiInstanceLoopCharacteristics isSequential="false"> <loopCardinality>0</loopCardinality> </multiInstanceLoopCharacteristics> </userTask> <sequenceFlow id="flow6" sourceRef="startevent1" targetRef="multiInstanceTask"></sequenceFlow> <sequenceFlow id="flow7" sourceRef="multiInstanceTask" targetRef="userTask"></sequenceFlow> </process>
It throws this exception when you try to start a process:
org.activiti.engine.impl.pvm.PvmException: already taking a transition at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:445) at org.activiti.engine.impl.persistence.entity.ExecutionEntity.takeAll(ExecutionEntity.java:549) at org.activiti.engine.impl.bpmn.behavior.ParallelMultiInstanceBehavior.leave(ParallelMultiInstanceBehavior.java:151)…
But It works fine when "isSequential" is true, why?
Thanks!
Labels:
- Labels:
-
Archive
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2015 03:51 PM
Hi,
Thanks for reporting this. I think it's a bug, I'll look into it tomorrow and come back with a final answer after doing some debugging.
Best regards,
Thanks for reporting this. I think it's a bug, I'll look into it tomorrow and come back with a final answer after doing some debugging.
Best regards,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2015 09:47 AM
Hello trademak,
Just to add more information. When I came to this error was on a multiiinstance sub-process with 0 iterations.
There is an important difference depending on which Activiti version is used,
5.17 = throws NullPointerException
5.18 = no exceptions, but the new Task is not created
Thanks for your answer.
Just to add more information. When I came to this error was on a multiiinstance sub-process with 0 iterations.
There is an important difference depending on which Activiti version is used,
5.17 = throws NullPointerException
5.18 = no exceptions, but the new Task is not created
Thanks for your answer.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2015 05:27 AM
Thanks, I've made some fixes that should resolve the issue.
Could you check against the current Github master if it resolves your issue?
Thanks,
Could you check against the current Github master if it resolves your issue?
Thanks,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2015 10:52 AM
Hi!
I've just ran some tests with that version and it seems to work well
Thanks!
Lucas
I've just ran some tests with that version and it seems to work well

Thanks!
Lucas
