AnsweredAssumed Answered

MI User task followed by a  Service Task

Question asked by luisalves00 on Oct 2, 2013
Latest reply on Oct 9, 2013 by frederikheremans1
Hello,

Part of my workflow goes like this:


<blockcode>
      <userTask id="Auth-Request-Program"
         name="Program Auth (${requestN} / ${programmerGroupItem.name})"
         activiti:candidateUsers="${programmerGroupItem.programadores}">
            <extensionElements>
                <activiti:taskListener event="create" class="org.flow.activiti.SetPriorityTaskListener">
                    <activiti:field name="priority" stringValue="1" />
                </activiti:taskListener>
                <activiti:taskListener event="create" class="org.flow.activiti.SetProgrammingIdTaskListener" />
            </extensionElements>
            <multiInstanceLoopCharacteristics isSequential="false">
                <loopDataInputRef>programmerGroupList</loopDataInputRef>
                <inputDataItem name="programmerGroupItem" />
            </multiInstanceLoopCharacteristics>
        </userTask>
      
      <sequenceFlow id="flow18" name="" sourceRef="Auth-Request-Program"
         targetRef="servicetask6">
        </sequenceFlow>
      
      <serviceTask id="servicetask6" name="Finally Create Auths"
         activiti:class="org.flow.activiti.authRequest.CreateAuthorizationFromRequestProgramador">
        </serviceTask>
</blockcode>

So…when a group of users finish all task the service task is executed.

PROBLEM: when the last user finish his task, the 'servicetask6' executes and fails, but the user task seems to be completed anyway. Is it supposed to work this way? I was expecting the last User Task to be sync with the following Service Task. Now how can I re-execute the 'servicetask6' ?

thanks in advance.

Outcomes