AnsweredAssumed Answered

Service tasks are not executing sequentially

Question asked by basu on Mar 22, 2011
Latest reply on Mar 25, 2011 by basu
Hi,
I created a task and flow is shown in the attachment.

Start –> UserTask —> ServiceTask1 —> ServiceTask2 —>ServiceTask3 –> End

After the build was successfull for the above task and generated the bar file I deployed it from activiti probe. Now when I start the process its executing upto ServiceTask1 and its saying Task was successfully completed. I need all the tasks to be executed sequentially one after another up to end. I am not seeing any exceptions in the logs. Please let me know if I missed any thing for the complete process to be completed from the below code snippet.


<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
  <process id="simpletask" name="SimpleTask">
    <startEvent id="startevent2" name="Start"></startEvent>
    <userTask id="usertask12" name="Authenticate" activiti:assignee="kermit" activiti:formKey="taskforms/request.form"></userTask>
    <sequenceFlow id="flow94" name="" sourceRef="startevent2" targetRef="usertask12"></sequenceFlow>
    <serviceTask id="servicetask65" name="Task1" activiti:class="org.task.Task1">
      <extensionElements>
        <activiti:field name="server">
          <activiti:string>abc</activiti:string>
        </activiti:field>
        <activiti:field name="command">
          <activiti:string>xyz</activiti:string>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="flow95" name="" sourceRef="usertask12" targetRef="servicetask65"></sequenceFlow>
    <serviceTask id="servicetask66" name="Task2" activiti:class="org.task.Task1">
      <extensionElements>
        <activiti:field name="server">
          <activiti:string>def</activiti:string>
        </activiti:field>
        <activiti:field name="command">
          <activiti:string>xyz</activiti:string>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="flow96" name="" sourceRef="servicetask65" targetRef="servicetask66"></sequenceFlow>
    <serviceTask id="servicetask67" name="Task3" activiti:class="org.task.Task1">
      <extensionElements>
        <activiti:field name="server">
          <activiti:string>mnp</activiti:string>
        </activiti:field>
        <activiti:field name="command">
          <activiti:string>qwe</activiti:string>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="flow97" name="" sourceRef="servicetask66" targetRef="servicetask67"></sequenceFlow>
    <endEvent id="endevent2" name="End"></endEvent>
    <sequenceFlow id="flow98" name="" sourceRef="servicetask67" targetRef="endevent2"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_simpletask">
    <bpmndi:BPMNPlane bpmnElement="simpletask" id="BPMNPlane_simpletask">
      <bpmndi:BPMNShape bpmnElement="startevent2" id="BPMNShape_startevent2">
        <omgdc:Bounds height="55" width="55" x="62" y="100"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask12" id="BPMNShape_usertask12">
        <omgdc:Bounds height="55" width="105" x="160" y="100"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="servicetask65" id="BPMNShape_servicetask65">
        <omgdc:Bounds height="55" width="105" x="310" y="100"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="servicetask66" id="BPMNShape_servicetask66">
        <omgdc:Bounds height="55" width="105" x="470" y="100"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="servicetask67" id="BPMNShape_servicetask67">
        <omgdc:Bounds height="55" width="105" x="630" y="100"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent2" id="BPMNShape_endevent2">
        <omgdc:Bounds height="55" width="55" x="800" y="100"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow94" id="BPMNEdge_flow94">
        <omgdi:waypoint x="117" y="127"></omgdi:waypoint>
        <omgdi:waypoint x="160" y="127"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow95" id="BPMNEdge_flow95">
        <omgdi:waypoint x="265" y="127"></omgdi:waypoint>
        <omgdi:waypoint x="310" y="127"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow96" id="BPMNEdge_flow96">
        <omgdi:waypoint x="415" y="127"></omgdi:waypoint>
        <omgdi:waypoint x="470" y="127"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow97" id="BPMNEdge_flow97">
        <omgdi:waypoint x="575" y="127"></omgdi:waypoint>
        <omgdi:waypoint x="630" y="127"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow98" id="BPMNEdge_flow98">
        <omgdi:waypoint x="735" y="127"></omgdi:waypoint>
        <omgdi:waypoint x="800" y="127"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>


Thank,
Basu

Attachments

Outcomes