195 lines
9.5 KiB
XML
Executable File
195 lines
9.5 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<definitions id="Definition"
|
|
targetNamespace="http://www.omg.org/bpmn20"
|
|
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="_resultadoItem" structureRef="String" />
|
|
<itemDefinition id="_countItem" structureRef="Integer" />
|
|
<itemDefinition id="_iItem" structureRef="Integer" />
|
|
<itemDefinition id="_usuarioItem" structureRef="String" />
|
|
<itemDefinition id="_mItem" structureRef="java.util.Map" />
|
|
|
|
<process processType="Private" isExecutable="true" id="flow5" name="flow5" tns:packageName="flows" >
|
|
|
|
<extensionElements>
|
|
<tns:import name="com.fp.simple.flow.FlowUtil" />
|
|
</extensionElements>
|
|
<!-- process variables -->
|
|
<property id="resultado" itemSubjectRef="_resultadoItem"/>
|
|
<property id="count" itemSubjectRef="_countItem"/>
|
|
<property id="i" itemSubjectRef="_iItem"/>
|
|
<property id="usuario" itemSubjectRef="_usuarioItem"/>
|
|
<property id="m" itemSubjectRef="_mItem"/>
|
|
|
|
<!-- nodes -->
|
|
<startEvent id="_E7C0308F-DD9C-4A2B-80D6-33D9DAD516DB" name="" />
|
|
<endEvent id="_B165566B-2CF9-4980-85A5-E86EB0DB6645" name="" />
|
|
<userTask id="_A6E2F6C3-A1D2-4D92-BADD-480A070A0975" name="Prueba" >
|
|
<ioSpecification>
|
|
<dataInput id="_A6E2F6C3-A1D2-4D92-BADD-480A070A0975_CommentInput" name="Comment" />
|
|
<dataInput id="_A6E2F6C3-A1D2-4D92-BADD-480A070A0975_TaskNameInput" name="TaskName" />
|
|
<dataInput id="_A6E2F6C3-A1D2-4D92-BADD-480A070A0975_ContentInput" name="Content" />
|
|
<inputSet>
|
|
<dataInputRefs>_A6E2F6C3-A1D2-4D92-BADD-480A070A0975_CommentInput</dataInputRefs>
|
|
<dataInputRefs>_A6E2F6C3-A1D2-4D92-BADD-480A070A0975_TaskNameInput</dataInputRefs>
|
|
<dataInputRefs>_A6E2F6C3-A1D2-4D92-BADD-480A070A0975_ContentInput</dataInputRefs>
|
|
</inputSet>
|
|
<outputSet>
|
|
</outputSet>
|
|
</ioSpecification>
|
|
<dataInputAssociation>
|
|
<targetRef>_A6E2F6C3-A1D2-4D92-BADD-480A070A0975_CommentInput</targetRef>
|
|
<assignment>
|
|
<from xsi:type="tFormalExpression">Prueba</from>
|
|
<to xsi:type="tFormalExpression">_A6E2F6C3-A1D2-4D92-BADD-480A070A0975_CommentInput</to>
|
|
</assignment>
|
|
</dataInputAssociation>
|
|
<dataInputAssociation>
|
|
<targetRef>_A6E2F6C3-A1D2-4D92-BADD-480A070A0975_TaskNameInput</targetRef>
|
|
<assignment>
|
|
<from xsi:type="tFormalExpression">Prueba
|
|
</from>
|
|
<to xsi:type="tFormalExpression">_A6E2F6C3-A1D2-4D92-BADD-480A070A0975_TaskNameInput</to>
|
|
</assignment>
|
|
</dataInputAssociation>
|
|
<dataInputAssociation>
|
|
<targetRef>_A6E2F6C3-A1D2-4D92-BADD-480A070A0975_ContentInput</targetRef>
|
|
<assignment>
|
|
<from xsi:type="tFormalExpression">Esta es una tarea</from>
|
|
<to xsi:type="tFormalExpression">_A6E2F6C3-A1D2-4D92-BADD-480A070A0975_ContentInput</to>
|
|
</assignment>
|
|
</dataInputAssociation>
|
|
<potentialOwner>
|
|
<resourceAssignmentExpression>
|
|
<formalExpression>#{m.userId}</formalExpression>
|
|
</resourceAssignmentExpression>
|
|
</potentialOwner>
|
|
</userTask>
|
|
<scriptTask id="_C85D5E40-591B-4E41-9CAE-A12D1AF07D45" name="Script" >
|
|
<script>System.out.println("OK")</script>
|
|
</scriptTask>
|
|
<scriptTask id="_09F4D36E-EDB3-4208-A06C-09142EC74E82" name="Script2" >
|
|
<script>System.out.println("NO");</script>
|
|
</scriptTask>
|
|
<exclusiveGateway id="_8" name="Gateway" gatewayDirection="Diverging" />
|
|
<exclusiveGateway id="_9" name="Gateway" gatewayDirection="Converging" />
|
|
<callActivity id="_10" name="Sub-looping" calledElement="looping" >
|
|
<ioSpecification>
|
|
<dataInput id="_10_countInput" name="count" />
|
|
<dataOutput id="_10_iOutput" name="i" />
|
|
<inputSet>
|
|
<dataInputRefs>_10_countInput</dataInputRefs>
|
|
</inputSet>
|
|
<outputSet>
|
|
<dataOutputRefs>_10_iOutput</dataOutputRefs>
|
|
</outputSet>
|
|
</ioSpecification>
|
|
<dataInputAssociation>
|
|
<sourceRef>count</sourceRef>
|
|
<targetRef>_10_countInput</targetRef>
|
|
</dataInputAssociation>
|
|
<dataOutputAssociation>
|
|
<sourceRef>_10_iOutput</sourceRef>
|
|
<targetRef>i</targetRef>
|
|
</dataOutputAssociation>
|
|
</callActivity>
|
|
<scriptTask id="_12" name="Rule" scriptFormat="http://www.java.com/java" >
|
|
<script>FlowUtil.getInstance().evalRule("TEST1",(Object)kcontext,"m");
|
|
//System.out.println("AAAAA");</script>
|
|
</scriptTask>
|
|
|
|
<!-- connections -->
|
|
<sequenceFlow id="_9-_B165566B-2CF9-4980-85A5-E86EB0DB6645" sourceRef="_9" targetRef="_B165566B-2CF9-4980-85A5-E86EB0DB6645" />
|
|
<sequenceFlow id="_12-_A6E2F6C3-A1D2-4D92-BADD-480A070A0975" sourceRef="_12" targetRef="_A6E2F6C3-A1D2-4D92-BADD-480A070A0975" />
|
|
<sequenceFlow id="_8-_C85D5E40-591B-4E41-9CAE-A12D1AF07D45" sourceRef="_8" targetRef="_C85D5E40-591B-4E41-9CAE-A12D1AF07D45" name="OK" tns:priority="1" >
|
|
<conditionExpression xsi:type="tFormalExpression" language="http://www.java.com/java" >return resultado.compareTo("OK")==0;</conditionExpression>
|
|
</sequenceFlow>
|
|
<sequenceFlow id="_10-_09F4D36E-EDB3-4208-A06C-09142EC74E82" sourceRef="_10" targetRef="_09F4D36E-EDB3-4208-A06C-09142EC74E82" />
|
|
<sequenceFlow id="_A6E2F6C3-A1D2-4D92-BADD-480A070A0975-_8" sourceRef="_A6E2F6C3-A1D2-4D92-BADD-480A070A0975" targetRef="_8" />
|
|
<sequenceFlow id="_09F4D36E-EDB3-4208-A06C-09142EC74E82-_9" sourceRef="_09F4D36E-EDB3-4208-A06C-09142EC74E82" targetRef="_9" />
|
|
<sequenceFlow id="_C85D5E40-591B-4E41-9CAE-A12D1AF07D45-_9" sourceRef="_C85D5E40-591B-4E41-9CAE-A12D1AF07D45" targetRef="_9" />
|
|
<sequenceFlow id="_8-_10" sourceRef="_8" targetRef="_10" name="NO" tns:priority="1" >
|
|
<conditionExpression xsi:type="tFormalExpression" language="http://www.java.com/java" >return resultado.compareTo("NO")==0;</conditionExpression>
|
|
</sequenceFlow>
|
|
<sequenceFlow id="_E7C0308F-DD9C-4A2B-80D6-33D9DAD516DB-_12" sourceRef="_E7C0308F-DD9C-4A2B-80D6-33D9DAD516DB" targetRef="_12" />
|
|
|
|
</process>
|
|
|
|
<bpmndi:BPMNDiagram>
|
|
<bpmndi:BPMNPlane bpmnElement="flow5" >
|
|
<bpmndi:BPMNShape bpmnElement="_E7C0308F-DD9C-4A2B-80D6-33D9DAD516DB" >
|
|
<dc:Bounds x="16" y="88" width="48" height="48" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="_B165566B-2CF9-4980-85A5-E86EB0DB6645" >
|
|
<dc:Bounds x="776" y="32" width="48" height="48" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="_A6E2F6C3-A1D2-4D92-BADD-480A070A0975" >
|
|
<dc:Bounds x="208" y="72" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="_C85D5E40-591B-4E41-9CAE-A12D1AF07D45" >
|
|
<dc:Bounds x="421" y="16" width="110" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="_09F4D36E-EDB3-4208-A06C-09142EC74E82" >
|
|
<dc:Bounds x="563" y="83" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="_8" >
|
|
<dc:Bounds x="340" y="88" width="48" height="48" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="_9" >
|
|
<dc:Bounds x="695" y="32" width="48" height="48" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="_10" >
|
|
<dc:Bounds x="421" y="128" width="110" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="_12" >
|
|
<dc:Bounds x="96" y="88" width="80" height="48" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge bpmnElement="_9-_B165566B-2CF9-4980-85A5-E86EB0DB6645" >
|
|
<di:waypoint x="719" y="56" />
|
|
<di:waypoint x="800" y="56" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="_12-_A6E2F6C3-A1D2-4D92-BADD-480A070A0975" >
|
|
<di:waypoint x="136" y="112" />
|
|
<di:waypoint x="258" y="112" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="_8-_C85D5E40-591B-4E41-9CAE-A12D1AF07D45" >
|
|
<di:waypoint x="364" y="112" />
|
|
<di:waypoint x="476" y="56" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="_10-_09F4D36E-EDB3-4208-A06C-09142EC74E82" >
|
|
<di:waypoint x="476" y="168" />
|
|
<di:waypoint x="613" y="123" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="_A6E2F6C3-A1D2-4D92-BADD-480A070A0975-_8" >
|
|
<di:waypoint x="258" y="112" />
|
|
<di:waypoint x="364" y="112" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="_09F4D36E-EDB3-4208-A06C-09142EC74E82-_9" >
|
|
<di:waypoint x="613" y="123" />
|
|
<di:waypoint x="719" y="56" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="_C85D5E40-591B-4E41-9CAE-A12D1AF07D45-_9" >
|
|
<di:waypoint x="476" y="56" />
|
|
<di:waypoint x="719" y="56" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="_8-_10" >
|
|
<di:waypoint x="364" y="112" />
|
|
<di:waypoint x="476" y="168" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="_E7C0308F-DD9C-4A2B-80D6-33D9DAD516DB-_12" >
|
|
<di:waypoint x="40" y="112" />
|
|
<di:waypoint x="136" y="112" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
|
|
</definitions> |