AnsweredAssumed Answered

callActiviti can not start sub process

Question asked by chen77716 on Mar 3, 2014
Latest reply on Mar 10, 2014 by jbarrez
something is wrong?

Process1:
——————————————————————————————–
<process id="MyCallSubprocess" name="My Subprocess">
    <startEvent id="theStart"/>
    <sequenceFlow id="flow1" sourceRef="theStart" targetRef="subProcess"/>

    <callActivity id="subProcess" name="test call sub process" calledElement="MyCallSubprocess-sub"/>

    <sequenceFlow id="flow10" sourceRef="subProcess" targetRef="taskAfterSubProcess"/>
    <userTask id="taskAfterSubProcess" name="Collect message" activiti:candidateGroups="engineering">
        <extensionElements>
            <activiti:taskListener event="complete"
                                   class="org.shirdrn.workflow.activiti.subprocess.CollectMessageTask"/>
        </extensionElements>
    </userTask>
    <sequenceFlow id="flow11" sourceRef="taskAfterSubProcess" targetRef="theEnd"/>
    <endEvent id="theEnd"/>
</process>
——————————————————————————————–
Process2:
——————————————————————————————–
    <process id="MyCallSubprocess-sub" name="My Call Subprocess">
        <startEvent id="subProcessStart">
            <extensionElements>
                <activiti:in target="maxTransCount" source="maxTransCount"/>
                <activiti:in target="merchant" source="merchant"/>
                <activiti:in target="protocol" source="protocol"/>
                <activiti:in target="repository" source="repository"/>
                <activiti:in target="in" source="in"/>
                <activiti:in target="out" source="out"/>
            </extensionElements>

        </startEvent>
        <sequenceFlow id="flow2" sourceRef="subProcessStart" targetRef="subProcessFork"/>
        <parallelGateway id="subProcessFork"/>
        <sequenceFlow id="flow3" sourceRef="subProcessFork" targetRef="task1"/>
        <sequenceFlow id="flow4" sourceRef="subProcessFork" targetRef="task2"/>
        <userTask id="task1" name="Check bank" activiti:candidateGroups="engineering">
            <extensionElements>
                <activiti:taskListener event="complete"
                                       class="org.shirdrn.workflow.activiti.subprocess.CheckBankTask"/>
            </extensionElements>
        </userTask>
        <sequenceFlow id="flow5" sourceRef="task1" targetRef="subProcessJoin"/>
        <userTask id="task2" name="Investigate software" activiti:candidateGroups="engineering">
            <extensionElements>
                <activiti:taskListener event="complete"
                                       class="org.shirdrn.workflow.activiti.subprocess.CheckMerchantTask"/>
            </extensionElements>
        </userTask>
        <sequenceFlow id="flow6" sourceRef="task2" targetRef="subProcessJoin"/>
        <parallelGateway id="subProcessJoin"/>
        <sequenceFlow id="flow7" sourceRef="subProcessJoin" targetRef="subProcessEnd"/>
        <endEvent id="subProcessEnd"/>
    </process>

Outcomes