1 Reply Latest reply on Sep 17, 2011 10:42 AM by Tihomir Surdilovic

    Oryx Issue Subprocesses

    Tobias Wittur Newbie

      Hi,

       

      I just tried to model a subprocess with oryx. When I saved it, the entire process model disappeared.

       

      I then opened the jbpm example BPMN2-ErrorBoundaryEventInterrupting.

       

      I simply opened and saved it, and here as well, the model was gone after saving it. (The xml was erased).Capture.GIF

       

      This is the xml to it:

       

       

      <?xml version="1.0" encoding="UTF-8"?>
      <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/bpmn20" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" id="Definition" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" expressionLanguage="http://www.mvel.org/2.0" name="Error Boundary Event Process" targetNamespace="http://www.omg.org/bpmn20" typeLanguage="http://www.java.com/javaTypes">
        <bpmn2:process id="ErrorBoundaryEvent" name="Error Boundary Event Process" isExecutable="true">
          <bpmn2:startEvent id="_1" name="StartProcess">
            <bpmn2:outgoing>_1-_2</bpmn2:outgoing>
          </bpmn2:startEvent>
          <bpmn2:subProcess id="_2" name="Hello">
            <bpmn2:incoming>_1-_2</bpmn2:incoming>
            <bpmn2:outgoing>_2-_3</bpmn2:outgoing>
            <bpmn2:startEvent id="_2-1" name="StartSubProcess">
              <bpmn2:outgoing>_2-1-_2-2</bpmn2:outgoing>
            </bpmn2:startEvent>
            <bpmn2:parallelGateway id="_2-2" name="null">
              <bpmn2:incoming>_2-1-_2-2</bpmn2:incoming>
              <bpmn2:outgoing>_2-2-_2-3</bpmn2:outgoing>
              <bpmn2:outgoing>_2-2-_2-4</bpmn2:outgoing>
            </bpmn2:parallelGateway>
            <bpmn2:endEvent id="_2-3" name="ErrorEvent">
              <bpmn2:incoming>_2-2-_2-3</bpmn2:incoming>
              <bpmn2:errorEventDefinition id="_VVD4gOEJEeCmFs5FZDDDYg" drools:erefname="MyError"/>
            </bpmn2:endEvent>
            <bpmn2:task id="_2-4" drools:taskName="MyTask" name="Task">
              <bpmn2:incoming>_2-2-_2-4</bpmn2:incoming>
              <bpmn2:outgoing>_2-4-_2-5</bpmn2:outgoing>
              <bpmn2:ioSpecification id="_VVD4geEJEeCmFs5FZDDDYg">
                <bpmn2:dataInput id="_2-4_TaskNameInput" name="TaskName"/>
                <bpmn2:inputSet id="_VVD4guEJEeCmFs5FZDDDYg"/>
                <bpmn2:outputSet id="_VVD4g-EJEeCmFs5FZDDDYg"/>
              </bpmn2:ioSpecification>
              <bpmn2:dataInputAssociation id="_VVD4hOEJEeCmFs5FZDDDYg">
                <bpmn2:targetRef>_2-4_TaskNameInput</bpmn2:targetRef>
                <bpmn2:assignment id="_VVD4heEJEeCmFs5FZDDDYg">
                  <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_VVD4huEJEeCmFs5FZDDDYg">MyTask</bpmn2:from>
                  <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_VVD4h-EJEeCmFs5FZDDDYg">_2-4_TaskNameInput</bpmn2:to>
                </bpmn2:assignment>
              </bpmn2:dataInputAssociation>
            </bpmn2:task>
            <bpmn2:endEvent id="_2-5" name="EndEvent">
              <bpmn2:incoming>_2-4-_2-5</bpmn2:incoming>
            </bpmn2:endEvent>
            <bpmn2:sequenceFlow id="_2-1-_2-2" sourceRef="_2-1" targetRef="_2-2"/>
            <bpmn2:sequenceFlow id="_2-2-_2-3" sourceRef="_2-2" targetRef="_2-3"/>
            <bpmn2:sequenceFlow id="_2-2-_2-4" sourceRef="_2-2" targetRef="_2-4"/>
            <bpmn2:sequenceFlow id="_2-4-_2-5" sourceRef="_2-4" targetRef="_2-5"/>
          </bpmn2:subProcess>
          <bpmn2:endEvent id="_3" name="EndProcess">
            <bpmn2:incoming>_2-_3</bpmn2:incoming>
            <bpmn2:terminateEventDefinition id="_VVD4iOEJEeCmFs5FZDDDYg"/>
          </bpmn2:endEvent>
          <bpmn2:intermediateCatchEvent id="_4" name="ErrorEvent">
            <bpmn2:outgoing>_4-_5</bpmn2:outgoing>
            <bpmn2:errorEventDefinition id="_VVD4ieEJEeCmFs5FZDDDYg" errorRef="_VVD4iuEJEeCmFs5FZDDDYg"/>
          </bpmn2:intermediateCatchEvent>
          <bpmn2:scriptTask id="_5" name="Goodbye" scriptFormat="null">
            <bpmn2:incoming>_4-_5</bpmn2:incoming>
            <bpmn2:outgoing>_5-_6</bpmn2:outgoing>
            <bpmn2:script>System.out.println(&quot;Error handled&quot;);</bpmn2:script>
          </bpmn2:scriptTask>
          <bpmn2:endEvent id="_6" name="EndProcess">
            <bpmn2:incoming>_5-_6</bpmn2:incoming>
          </bpmn2:endEvent>
          <bpmn2:sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2"/>
          <bpmn2:sequenceFlow id="_2-_3" sourceRef="_2" targetRef="_3"/>
          <bpmn2:sequenceFlow id="_4-_5" sourceRef="_4" targetRef="_5"/>
          <bpmn2:sequenceFlow id="_5-_6" sourceRef="_5" targetRef="_6"/>
        </bpmn2:process>
        <bpmn2:error id="_VVD4iuEJEeCmFs5FZDDDYg"/>
        <bpmndi:BPMNDiagram id="_VVD4i-EJEeCmFs5FZDDDYg">
          <bpmndi:BPMNPlane id="_VVD4jOEJEeCmFs5FZDDDYg" bpmnElement="ErrorBoundaryEvent">
            <bpmndi:BPMNShape id="_VVD4jeEJEeCmFs5FZDDDYg" bpmnElement="_1">
              <dc:Bounds height="30.0" width="30.0" x="27.0" y="115.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape id="_VVD4juEJEeCmFs5FZDDDYg" bpmnElement="_2">
              <dc:Bounds height="221.0" width="349.0" x="97.0" y="15.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape id="_VVD4j-EJEeCmFs5FZDDDYg" bpmnElement="_3">
              <dc:Bounds height="28.0" width="28.0" x="489.0" y="113.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape id="_VVD4kOEJEeCmFs5FZDDDYg" bpmnElement="_4">
              <dc:Bounds height="30.0" width="30.0" x="380.0" y="224.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape id="_VVD4keEJEeCmFs5FZDDDYg" bpmnElement="_5">
              <dc:Bounds height="48.0" width="80.0" x="355.0" y="288.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape id="_VVD4kuEJEeCmFs5FZDDDYg" bpmnElement="_6">
              <dc:Bounds height="28.0" width="28.0" x="380.0" y="369.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNEdge id="_VVD4k-EJEeCmFs5FZDDDYg" bpmnElement="_1-_2">
              <di:waypoint xsi:type="dc:Point" x="42.0" y="130.0"/>
              <di:waypoint xsi:type="dc:Point" x="271.5" y="125.5"/>
            </bpmndi:BPMNEdge>
            <bpmndi:BPMNEdge id="_VVD4lOEJEeCmFs5FZDDDYg" bpmnElement="_2-_3">
              <di:waypoint xsi:type="dc:Point" x="271.5" y="125.5"/>
              <di:waypoint xsi:type="dc:Point" x="503.0" y="127.0"/>
            </bpmndi:BPMNEdge>
            <bpmndi:BPMNEdge id="_VVD4leEJEeCmFs5FZDDDYg" bpmnElement="_4-_5">
              <di:waypoint xsi:type="dc:Point" x="395.0" y="239.0"/>
              <di:waypoint xsi:type="dc:Point" x="395.0" y="312.0"/>
            </bpmndi:BPMNEdge>
            <bpmndi:BPMNEdge id="_VVD4luEJEeCmFs5FZDDDYg" bpmnElement="_5-_6">
              <di:waypoint xsi:type="dc:Point" x="395.0" y="312.0"/>
              <di:waypoint xsi:type="dc:Point" x="394.0" y="383.0"/>
            </bpmndi:BPMNEdge>
          </bpmndi:BPMNPlane>
        </bpmndi:BPMNDiagram>
      </bpmn2:definitions>