maia_modificado/.svn/pristine/ce/ce872fc1fc389903163ecbef53f...

97 lines
4.2 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<definitions id="Definition"
targetNamespace="http://www.jboss.org/drools"
typeLanguage="http://www.java.com/javaTypes"
expressionLanguage="http://www.mvel.org/2.0"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
xmlns:g="http://www.jboss.org/drools/flow/gpd"
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:tns="http://www.jboss.org/drools">
<itemDefinition id="_typeItem" structureRef="String" />
<process processType="Private" isExecutable="true" id="n2" name="n2" tns:packageName="maia.flows" >
<!-- process variables -->
<property id="type" itemSubjectRef="_typeItem"/>
<!-- nodes -->
<startEvent id="_1" name="Start" />
<endEvent id="_2" name="End" >
<terminateEventDefinition/>
</endEvent>
<exclusiveGateway id="_3" name="Gateway" gatewayDirection="Diverging" />
<scriptTask id="_4" name="Natural" scriptFormat="http://www.java.com/java" >
<script>System.out.println("Persona Natural");</script>
</scriptTask>
<scriptTask id="_5" name="Juridica" scriptFormat="http://www.java.com/java" >
<script>System.out.println("Persona Jurídica");</script>
</scriptTask>
<exclusiveGateway id="_6" name="Gateway" gatewayDirection="Converging" />
<!-- connections -->
<sequenceFlow id="_6-_2" sourceRef="_6" targetRef="_2" />
<sequenceFlow id="_1-_3" sourceRef="_1" targetRef="_3" />
<sequenceFlow id="_3-_4" sourceRef="_3" targetRef="_4" name="Persona Natural" tns:priority="1" >
<conditionExpression xsi:type="tFormalExpression" language="http://www.java.com/java" >return type.compareTo("N")==0;</conditionExpression>
</sequenceFlow>
<sequenceFlow id="_3-_5" sourceRef="_3" targetRef="_5" name="Persona Jurídica" tns:priority="1" >
<conditionExpression xsi:type="tFormalExpression" language="http://www.java.com/java" >return type.compareTo("N")!=0;</conditionExpression>
</sequenceFlow>
<sequenceFlow id="_4-_6" sourceRef="_4" targetRef="_6" />
<sequenceFlow id="_5-_6" sourceRef="_5" targetRef="_6" />
</process>
<bpmndi:BPMNDiagram>
<bpmndi:BPMNPlane bpmnElement="n2" >
<bpmndi:BPMNShape bpmnElement="_1" >
<dc:Bounds x="100" y="100" width="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_2" >
<dc:Bounds x="595" y="113" width="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_3" >
<dc:Bounds x="250" y="106" width="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_4" >
<dc:Bounds x="411" y="31" width="80" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_5" >
<dc:Bounds x="419" y="165" width="80" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_6" >
<dc:Bounds x="517" y="112" width="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="_6-_2" >
<di:waypoint x="541" y="136" />
<di:waypoint x="619" y="137" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_1-_3" >
<di:waypoint x="124" y="124" />
<di:waypoint x="274" y="130" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_3-_4" >
<di:waypoint x="274" y="130" />
<di:waypoint x="451" y="55" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_3-_5" >
<di:waypoint x="274" y="130" />
<di:waypoint x="459" y="189" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_4-_6" >
<di:waypoint x="451" y="55" />
<di:waypoint x="541" y="136" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_5-_6" >
<di:waypoint x="459" y="189" />
<di:waypoint x="541" y="136" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>