AnsweredAssumed Answered

Error on Multiinstance with 0 iterations

Question asked by lucas_matw on Aug 19, 2015
Latest reply on Aug 26, 2015 by lucas_matw
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:


  <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!



Outcomes