Skip to content

Instantly share code, notes, and snippets.

@mrioan
Created July 5, 2012 17:11
Show Gist options
  • Save mrioan/3054966 to your computer and use it in GitHub Desktop.
Save mrioan/3054966 to your computer and use it in GitHub Desktop.
<?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="_jjRvoMSjEeG8Jp4bGXoECA" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" targetNamespace="http://www.omg.org/bpmn20">
<bpmn2:itemDefinition id="_amountItem" structureRef="String"/>
<bpmn2:itemDefinition id="_clientIdItem" structureRef="String"/>
<bpmn2:itemDefinition id="_productIdItem" structureRef="String"/>
<bpmn2:itemDefinition id="_bpResponseItem" structureRef="String"/>
<bpmn2:itemDefinition id="_amountInputItem" structureRef="String"/>
<bpmn2:itemDefinition id="_clientIdInputItem" structureRef="String"/>
<bpmn2:itemDefinition id="_productIdInputItem" structureRef="String"/>
<bpmn2:itemDefinition id="_amountOutputItem" structureRef="String"/>
<bpmn2:itemDefinition id="_clientIdOutputItem" structureRef="String"/>
<bpmn2:itemDefinition id="_productIdOutputItem" structureRef="String"/>
<bpmn2:itemDefinition id="_cancelEventItem"/>
<bpmn2:itemDefinition id="__65741793-8AB3-41E0-B75B-0B3DE339C2C2_amountInputItem" structureRef="String"/>
<bpmn2:itemDefinition id="__65741793-8AB3-41E0-B75B-0B3DE339C2C2_cancelEventInputOutputItem" structureRef="String"/>
<bpmn2:itemDefinition id="__8A5125F0-981E-443D-A092-38810F36C2B9_bpResultInputInputItem" structureRef="String"/>
<bpmn2:itemDefinition id="__8A5125F0-981E-443D-A092-38810F36C2B9_cancelEventInputOutputItem" structureRef="String"/>
<bpmn2:itemDefinition id="__55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_newCreditLimitToBankingPlatformInputItem" structureRef="String"/>
<bpmn2:itemDefinition id="__55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_clientIdToBankingPlatformInputItem" structureRef="String"/>
<bpmn2:itemDefinition id="__55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_responseFromBankingPlatformOutputItem" structureRef="String"/>
<bpmn2:itemDefinition id="__0006BD10-6225-4270-9228-78A091CB4DD5_classNameInputItem" structureRef="String"/>
<bpmn2:itemDefinition id="__0006BD10-6225-4270-9228-78A091CB4DD5_messageInputItem" structureRef="String"/>
<bpmn2:process id="defaultPackage.ApprovalProcess" drools:packageName="defaultPackage" name="ApprovalProcess" isExecutable="true">
<bpmn2:property id="amount" itemSubjectRef="_amountItem"/>
<bpmn2:property id="clientId" itemSubjectRef="_clientIdItem"/>
<bpmn2:property id="productId" itemSubjectRef="_productIdItem"/>
<bpmn2:property id="bpResponse" itemSubjectRef="_bpResponseItem"/>
<bpmn2:property id="amountInput" itemSubjectRef="_amountInputItem"/>
<bpmn2:property id="clientIdInput" itemSubjectRef="_clientIdInputItem"/>
<bpmn2:property id="productIdInput" itemSubjectRef="_productIdInputItem"/>
<bpmn2:property id="amountOutput" itemSubjectRef="_amountOutputItem"/>
<bpmn2:property id="clientIdOutput" itemSubjectRef="_clientIdOutputItem"/>
<bpmn2:property id="productIdOutput" itemSubjectRef="_productIdOutputItem"/>
<bpmn2:property id="cancelEvent" itemSubjectRef="_cancelEventItem"/>
<bpmn2:startEvent id="_D253A2B8-94C8-40ED-AB87-71D8B77ADD7D" drools:bgcolor="#ffffff" name="Start">
<bpmn2:outgoing>_064EB3F8-63B9-4B4E-ABC2-7593A25C01F8</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:businessRuleTask id="_FE94588E-712D-4A57-95BD-CA8382C3C50C" drools:taskName="determine credit increase" drools:ruleFlowGroup="credit-increase" name="determine credit increase">
<bpmn2:incoming>_47D0F873-F10F-40E0-96BE-D9783B108058</bpmn2:incoming>
<bpmn2:outgoing>_09B44623-0669-4348-91F8-42CE456F8AB6</bpmn2:outgoing>
<bpmn2:ioSpecification id="_jjRvocSjEeG8Jp4bGXoECA">
<bpmn2:dataInput id="_FE94588E-712D-4A57-95BD-CA8382C3C50C_TaskNameInput" name="TaskName"/>
<bpmn2:inputSet id="_jjRvosSjEeG8Jp4bGXoECA"/>
<bpmn2:outputSet id="_jjRvo8SjEeG8Jp4bGXoECA"/>
</bpmn2:ioSpecification>
<bpmn2:dataInputAssociation id="_jjRvpMSjEeG8Jp4bGXoECA">
<bpmn2:targetRef>_FE94588E-712D-4A57-95BD-CA8382C3C50C_TaskNameInput</bpmn2:targetRef>
<bpmn2:assignment id="_jjRvpcSjEeG8Jp4bGXoECA">
<bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_jjRvpsSjEeG8Jp4bGXoECA">determine credit increase</bpmn2:from>
<bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_jjRvp8SjEeG8Jp4bGXoECA">_FE94588E-712D-4A57-95BD-CA8382C3C50C_TaskNameInput</bpmn2:to>
</bpmn2:assignment>
</bpmn2:dataInputAssociation>
</bpmn2:businessRuleTask>
<bpmn2:userTask id="_65741793-8AB3-41E0-B75B-0B3DE339C2C2" drools:taskName="show_message" drools:scriptFormat="http://www.java.com/java" name="show_message">
<bpmn2:incoming>_09B44623-0669-4348-91F8-42CE456F8AB6</bpmn2:incoming>
<bpmn2:outgoing>_4D83139E-05F6-4220-A645-28451C82F1F7</bpmn2:outgoing>
<bpmn2:ioSpecification id="_jjRvqMSjEeG8Jp4bGXoECA">
<bpmn2:dataInput id="_65741793-8AB3-41E0-B75B-0B3DE339C2C2_TaskNameInput" name="TaskName"/>
<bpmn2:dataInput id="_65741793-8AB3-41E0-B75B-0B3DE339C2C2_GroupIdInput" name="GroupId"/>
<bpmn2:dataInput id="_65741793-8AB3-41E0-B75B-0B3DE339C2C2_amountInput" drools:dtype="String" itemSubjectRef="__65741793-8AB3-41E0-B75B-0B3DE339C2C2_amountInputItem" name="amount"/>
<bpmn2:dataOutput id="_65741793-8AB3-41E0-B75B-0B3DE339C2C2_cancelEventInputOutput" drools:dtype="String" itemSubjectRef="__65741793-8AB3-41E0-B75B-0B3DE339C2C2_cancelEventInputOutputItem" name="cancelEventInput"/>
<bpmn2:inputSet id="_jjRvqcSjEeG8Jp4bGXoECA">
<bpmn2:dataInputRefs>_65741793-8AB3-41E0-B75B-0B3DE339C2C2_GroupIdInput</bpmn2:dataInputRefs>
<bpmn2:dataInputRefs>_65741793-8AB3-41E0-B75B-0B3DE339C2C2_amountInput</bpmn2:dataInputRefs>
<bpmn2:dataInputRefs>_65741793-8AB3-41E0-B75B-0B3DE339C2C2_TaskNameInput</bpmn2:dataInputRefs>
</bpmn2:inputSet>
<bpmn2:outputSet id="_jjRvqsSjEeG8Jp4bGXoECA">
<bpmn2:dataOutputRefs>_65741793-8AB3-41E0-B75B-0B3DE339C2C2_cancelEventInputOutput</bpmn2:dataOutputRefs>
</bpmn2:outputSet>
</bpmn2:ioSpecification>
<bpmn2:dataInputAssociation id="_jjRvq8SjEeG8Jp4bGXoECA">
<bpmn2:targetRef>_65741793-8AB3-41E0-B75B-0B3DE339C2C2_TaskNameInput</bpmn2:targetRef>
<bpmn2:assignment id="_jjRvrMSjEeG8Jp4bGXoECA">
<bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_jjSWsMSjEeG8Jp4bGXoECA">show_message</bpmn2:from>
<bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_jjSWscSjEeG8Jp4bGXoECA">_65741793-8AB3-41E0-B75B-0B3DE339C2C2_TaskNameInput</bpmn2:to>
</bpmn2:assignment>
</bpmn2:dataInputAssociation>
<bpmn2:dataInputAssociation id="_jjSWssSjEeG8Jp4bGXoECA">
<bpmn2:targetRef>_65741793-8AB3-41E0-B75B-0B3DE339C2C2_GroupIdInput</bpmn2:targetRef>
<bpmn2:assignment id="_jjSWs8SjEeG8Jp4bGXoECA">
<bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_jjSWtMSjEeG8Jp4bGXoECA">manager</bpmn2:from>
<bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_jjSWtcSjEeG8Jp4bGXoECA">_65741793-8AB3-41E0-B75B-0B3DE339C2C2_GroupIdInput</bpmn2:to>
</bpmn2:assignment>
</bpmn2:dataInputAssociation>
<bpmn2:dataInputAssociation id="_jjSWtsSjEeG8Jp4bGXoECA">
<bpmn2:sourceRef>amount</bpmn2:sourceRef>
<bpmn2:targetRef>_65741793-8AB3-41E0-B75B-0B3DE339C2C2_amountInput</bpmn2:targetRef>
</bpmn2:dataInputAssociation>
<bpmn2:dataOutputAssociation id="_jjSWt8SjEeG8Jp4bGXoECA">
<bpmn2:sourceRef>_65741793-8AB3-41E0-B75B-0B3DE339C2C2_cancelEventInputOutput</bpmn2:sourceRef>
<bpmn2:targetRef>cancelEvent</bpmn2:targetRef>
</bpmn2:dataOutputAssociation>
</bpmn2:userTask>
<bpmn2:sequenceFlow id="_09B44623-0669-4348-91F8-42CE456F8AB6" sourceRef="_FE94588E-712D-4A57-95BD-CA8382C3C50C" targetRef="_65741793-8AB3-41E0-B75B-0B3DE339C2C2"/>
<bpmn2:endEvent id="_519B9DCC-C93E-4523-ABC8-428AE267E2E3" drools:bgcolor="#ffffff" name="End">
<bpmn2:incoming>_2F03A0AF-488E-4FC9-913C-62191B1CF723</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:userTask id="_8A5125F0-981E-443D-A092-38810F36C2B9" drools:taskName="show_bp_result" drools:scriptFormat="http://www.java.com/java" name="show_bp_result">
<bpmn2:incoming>_D503622D-5506-4FA1-BB3E-678EDDE3B4F7</bpmn2:incoming>
<bpmn2:outgoing>_CB0BC34B-6BA0-48D3-8491-FDC133E33236</bpmn2:outgoing>
<bpmn2:ioSpecification id="_jjSWuMSjEeG8Jp4bGXoECA">
<bpmn2:dataInput id="_8A5125F0-981E-443D-A092-38810F36C2B9_TaskNameInput" name="TaskName"/>
<bpmn2:dataInput id="_8A5125F0-981E-443D-A092-38810F36C2B9_bpResultInputInput" drools:dtype="String" itemSubjectRef="__8A5125F0-981E-443D-A092-38810F36C2B9_bpResultInputInputItem" name="bpResultInput"/>
<bpmn2:dataInput id="_8A5125F0-981E-443D-A092-38810F36C2B9_GroupIdInput" name="GroupId"/>
<bpmn2:dataOutput id="_8A5125F0-981E-443D-A092-38810F36C2B9_cancelEventInputOutput" drools:dtype="String" itemSubjectRef="__8A5125F0-981E-443D-A092-38810F36C2B9_cancelEventInputOutputItem" name="cancelEventInput"/>
<bpmn2:inputSet id="_jjSWucSjEeG8Jp4bGXoECA">
<bpmn2:dataInputRefs>_8A5125F0-981E-443D-A092-38810F36C2B9_bpResultInputInput</bpmn2:dataInputRefs>
<bpmn2:dataInputRefs>_8A5125F0-981E-443D-A092-38810F36C2B9_GroupIdInput</bpmn2:dataInputRefs>
<bpmn2:dataInputRefs>_8A5125F0-981E-443D-A092-38810F36C2B9_TaskNameInput</bpmn2:dataInputRefs>
</bpmn2:inputSet>
<bpmn2:outputSet id="_jjSWusSjEeG8Jp4bGXoECA">
<bpmn2:dataOutputRefs>_8A5125F0-981E-443D-A092-38810F36C2B9_cancelEventInputOutput</bpmn2:dataOutputRefs>
</bpmn2:outputSet>
</bpmn2:ioSpecification>
<bpmn2:dataInputAssociation id="_jjSWu8SjEeG8Jp4bGXoECA">
<bpmn2:targetRef>_8A5125F0-981E-443D-A092-38810F36C2B9_TaskNameInput</bpmn2:targetRef>
<bpmn2:assignment id="_jjSWvMSjEeG8Jp4bGXoECA">
<bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_jjSWvcSjEeG8Jp4bGXoECA">show_bp_result</bpmn2:from>
<bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_jjSWvsSjEeG8Jp4bGXoECA">_8A5125F0-981E-443D-A092-38810F36C2B9_TaskNameInput</bpmn2:to>
</bpmn2:assignment>
</bpmn2:dataInputAssociation>
<bpmn2:dataInputAssociation id="_jjSWv8SjEeG8Jp4bGXoECA">
<bpmn2:sourceRef>bpResponse</bpmn2:sourceRef>
<bpmn2:targetRef>_8A5125F0-981E-443D-A092-38810F36C2B9_bpResultInputInput</bpmn2:targetRef>
</bpmn2:dataInputAssociation>
<bpmn2:dataInputAssociation id="_jjSWwMSjEeG8Jp4bGXoECA">
<bpmn2:targetRef>_8A5125F0-981E-443D-A092-38810F36C2B9_GroupIdInput</bpmn2:targetRef>
<bpmn2:assignment id="_jjSWwcSjEeG8Jp4bGXoECA">
<bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_jjSWwsSjEeG8Jp4bGXoECA">manager</bpmn2:from>
<bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_jjSWw8SjEeG8Jp4bGXoECA">_8A5125F0-981E-443D-A092-38810F36C2B9_GroupIdInput</bpmn2:to>
</bpmn2:assignment>
</bpmn2:dataInputAssociation>
<bpmn2:dataOutputAssociation id="_jjSWxMSjEeG8Jp4bGXoECA">
<bpmn2:sourceRef>_8A5125F0-981E-443D-A092-38810F36C2B9_cancelEventInputOutput</bpmn2:sourceRef>
<bpmn2:targetRef>cancelEvent</bpmn2:targetRef>
</bpmn2:dataOutputAssociation>
</bpmn2:userTask>
<bpmn2:sequenceFlow id="_D503622D-5506-4FA1-BB3E-678EDDE3B4F7" sourceRef="_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335" targetRef="_8A5125F0-981E-443D-A092-38810F36C2B9"/>
<bpmn2:scriptTask id="_DCC2C7A2-EEAB-411D-9AE0-5B7A1EDE36CD" name="set inputs" scriptFormat="http://www.java.com/java">
<bpmn2:incoming>_064EB3F8-63B9-4B4E-ABC2-7593A25C01F8</bpmn2:incoming>
<bpmn2:outgoing>_47D0F873-F10F-40E0-96BE-D9783B108058</bpmn2:outgoing>
<bpmn2:script><![CDATA[kcontext.setVariable("productId", kcontext.getVariable("productIdInput"));kcontext.setVariable("clientId", kcontext.getVariable("clientIdInput"));kcontext.setVariable("amount", kcontext.getVariable("amountInput"));kcontext.getKnowledgeRuntime().insert(kcontext.getProcessInstance());]]></bpmn2:script>
</bpmn2:scriptTask>
<bpmn2:sequenceFlow id="_064EB3F8-63B9-4B4E-ABC2-7593A25C01F8" sourceRef="_D253A2B8-94C8-40ED-AB87-71D8B77ADD7D" targetRef="_DCC2C7A2-EEAB-411D-9AE0-5B7A1EDE36CD"/>
<bpmn2:sequenceFlow id="_47D0F873-F10F-40E0-96BE-D9783B108058" sourceRef="_DCC2C7A2-EEAB-411D-9AE0-5B7A1EDE36CD" targetRef="_FE94588E-712D-4A57-95BD-CA8382C3C50C"/>
<bpmn2:scriptTask id="_03E58C7E-8740-4E5F-A370-204BB287C71A" name="set outputs" scriptFormat="http://www.java.com/java">
<bpmn2:incoming>_D483825B-D318-400E-907D-95AAF070BAEF</bpmn2:incoming>
<bpmn2:outgoing>_2F03A0AF-488E-4FC9-913C-62191B1CF723</bpmn2:outgoing>
<bpmn2:script><![CDATA[kcontext.setVariable("productIdOutput", kcontext.getVariable("productId"));kcontext.setVariable("clientIdOutput", kcontext.getVariable("clientId"));kcontext.setVariable("amountOutput", kcontext.getVariable("amount"));]]></bpmn2:script>
</bpmn2:scriptTask>
<bpmn2:sequenceFlow id="_2F03A0AF-488E-4FC9-913C-62191B1CF723" sourceRef="_03E58C7E-8740-4E5F-A370-204BB287C71A" targetRef="_519B9DCC-C93E-4523-ABC8-428AE267E2E3"/>
<bpmn2:task id="_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335" drools:taskName="SendmessagetoBankingPlatform" name="send new credit limit">
<bpmn2:incoming>_A189ED2E-3DB9-4D44-8E2C-3791D251A416</bpmn2:incoming>
<bpmn2:outgoing>_D503622D-5506-4FA1-BB3E-678EDDE3B4F7</bpmn2:outgoing>
<bpmn2:ioSpecification id="_jjS9wMSjEeG8Jp4bGXoECA">
<bpmn2:dataInput id="_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_TaskNameInput" name="TaskName"/>
<bpmn2:dataInput id="_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_newCreditLimitToBankingPlatformInput" drools:dtype="String" itemSubjectRef="__55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_newCreditLimitToBankingPlatformInputItem" name="newCreditLimitToBankingPlatform"/>
<bpmn2:dataInput id="_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_clientIdToBankingPlatformInput" drools:dtype="String" itemSubjectRef="__55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_clientIdToBankingPlatformInputItem" name="clientIdToBankingPlatform"/>
<bpmn2:dataOutput id="_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_responseFromBankingPlatformOutput" drools:dtype="String" itemSubjectRef="__55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_responseFromBankingPlatformOutputItem" name="responseFromBankingPlatform"/>
<bpmn2:inputSet id="_jjS9wcSjEeG8Jp4bGXoECA">
<bpmn2:dataInputRefs>_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_newCreditLimitToBankingPlatformInput</bpmn2:dataInputRefs>
<bpmn2:dataInputRefs>_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_clientIdToBankingPlatformInput</bpmn2:dataInputRefs>
<bpmn2:dataInputRefs>_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_TaskNameInput</bpmn2:dataInputRefs>
</bpmn2:inputSet>
<bpmn2:outputSet id="_jjS9wsSjEeG8Jp4bGXoECA">
<bpmn2:dataOutputRefs>_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_responseFromBankingPlatformOutput</bpmn2:dataOutputRefs>
</bpmn2:outputSet>
</bpmn2:ioSpecification>
<bpmn2:dataInputAssociation id="_jjS9w8SjEeG8Jp4bGXoECA">
<bpmn2:targetRef>_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_TaskNameInput</bpmn2:targetRef>
<bpmn2:assignment id="_jjS9xMSjEeG8Jp4bGXoECA">
<bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_jjS9xcSjEeG8Jp4bGXoECA">SendmessagetoBankingPlatform</bpmn2:from>
<bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_jjS9xsSjEeG8Jp4bGXoECA">_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_TaskNameInput</bpmn2:to>
</bpmn2:assignment>
</bpmn2:dataInputAssociation>
<bpmn2:dataInputAssociation id="_jjS9x8SjEeG8Jp4bGXoECA">
<bpmn2:sourceRef>clientId</bpmn2:sourceRef>
<bpmn2:targetRef>_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_clientIdToBankingPlatformInput</bpmn2:targetRef>
</bpmn2:dataInputAssociation>
<bpmn2:dataInputAssociation id="_jjS9yMSjEeG8Jp4bGXoECA">
<bpmn2:sourceRef>amount</bpmn2:sourceRef>
<bpmn2:targetRef>_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_newCreditLimitToBankingPlatformInput</bpmn2:targetRef>
</bpmn2:dataInputAssociation>
<bpmn2:dataOutputAssociation id="_jjS9ycSjEeG8Jp4bGXoECA">
<bpmn2:sourceRef>_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335_responseFromBankingPlatformOutput</bpmn2:sourceRef>
<bpmn2:targetRef>bpResponse</bpmn2:targetRef>
</bpmn2:dataOutputAssociation>
</bpmn2:task>
<bpmn2:exclusiveGateway id="_7C30E1FC-40A8-4EB3-AB01-BADABEE6C51E" drools:bgcolor="#ffffff" drools:dg="" name="" gatewayDirection="Diverging">
<bpmn2:incoming>_4D83139E-05F6-4220-A645-28451C82F1F7</bpmn2:incoming>
<bpmn2:outgoing>_A189ED2E-3DB9-4D44-8E2C-3791D251A416</bpmn2:outgoing>
<bpmn2:outgoing>_989567DE-8258-48B6-B94D-2560D00288CE</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:sequenceFlow id="_4D83139E-05F6-4220-A645-28451C82F1F7" sourceRef="_65741793-8AB3-41E0-B75B-0B3DE339C2C2" targetRef="_7C30E1FC-40A8-4EB3-AB01-BADABEE6C51E"/>
<bpmn2:sequenceFlow id="_A189ED2E-3DB9-4D44-8E2C-3791D251A416" name="continue" sourceRef="_7C30E1FC-40A8-4EB3-AB01-BADABEE6C51E" targetRef="_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335">
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="_jjS9ysSjEeG8Jp4bGXoECA" language="http://www.java.com/java"><![CDATA[return cancelEvent == null || "false".equals(cancelEvent);]]></bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:exclusiveGateway id="_B0972385-91F8-4FAE-8959-E4126E3B7AAF" drools:bgcolor="#ffffff" drools:dg="" name="" gatewayDirection="Diverging">
<bpmn2:incoming>_CB0BC34B-6BA0-48D3-8491-FDC133E33236</bpmn2:incoming>
<bpmn2:outgoing>_F9D90C8E-D1A4-49BF-B44B-6D47DF679AA3</bpmn2:outgoing>
<bpmn2:outgoing>_EDE5E8FE-154C-4412-872F-394D4E64946B</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:sequenceFlow id="_CB0BC34B-6BA0-48D3-8491-FDC133E33236" sourceRef="_8A5125F0-981E-443D-A092-38810F36C2B9" targetRef="_B0972385-91F8-4FAE-8959-E4126E3B7AAF"/>
<bpmn2:exclusiveGateway id="_128EA016-E19B-4082-980C-74D88DFE2823" drools:bgcolor="#ffffff" drools:dg="" name="" gatewayDirection="Converging">
<bpmn2:incoming>_F9D90C8E-D1A4-49BF-B44B-6D47DF679AA3</bpmn2:incoming>
<bpmn2:incoming>_F6C72AFC-CC7A-4736-A039-431D07A07214</bpmn2:incoming>
<bpmn2:outgoing>_D483825B-D318-400E-907D-95AAF070BAEF</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:sequenceFlow id="_F9D90C8E-D1A4-49BF-B44B-6D47DF679AA3" name="continue" sourceRef="_B0972385-91F8-4FAE-8959-E4126E3B7AAF" targetRef="_128EA016-E19B-4082-980C-74D88DFE2823">
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="_jjS9y8SjEeG8Jp4bGXoECA" language="http://www.java.com/java"><![CDATA[return cancelEvent == null || "false".equals(cancelEvent);]]></bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="_D483825B-D318-400E-907D-95AAF070BAEF" sourceRef="_128EA016-E19B-4082-980C-74D88DFE2823" targetRef="_03E58C7E-8740-4E5F-A370-204BB287C71A"/>
<bpmn2:exclusiveGateway id="_FF52928C-D2DB-4905-968B-96AC0E68C334" drools:bgcolor="#ffffff" drools:dg="" name="" gatewayDirection="Converging">
<bpmn2:incoming>_989567DE-8258-48B6-B94D-2560D00288CE</bpmn2:incoming>
<bpmn2:incoming>_EDE5E8FE-154C-4412-872F-394D4E64946B</bpmn2:incoming>
<bpmn2:outgoing>_530BCB23-F76E-4548-9C7F-56CF67299FE7</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:sequenceFlow id="_989567DE-8258-48B6-B94D-2560D00288CE" name="cancel" sourceRef="_7C30E1FC-40A8-4EB3-AB01-BADABEE6C51E" targetRef="_FF52928C-D2DB-4905-968B-96AC0E68C334">
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="_jjS9zMSjEeG8Jp4bGXoECA" language="http://www.java.com/java"><![CDATA[return cancelEvent != null && "true".equals(cancelEvent);]]></bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="_530BCB23-F76E-4548-9C7F-56CF67299FE7" sourceRef="_FF52928C-D2DB-4905-968B-96AC0E68C334" targetRef="_0006BD10-6225-4270-9228-78A091CB4DD5"/>
<bpmn2:sequenceFlow id="_F6C72AFC-CC7A-4736-A039-431D07A07214" sourceRef="_0006BD10-6225-4270-9228-78A091CB4DD5" targetRef="_128EA016-E19B-4082-980C-74D88DFE2823"/>
<bpmn2:sequenceFlow id="_EDE5E8FE-154C-4412-872F-394D4E64946B" name="cancel" sourceRef="_B0972385-91F8-4FAE-8959-E4126E3B7AAF" targetRef="_FF52928C-D2DB-4905-968B-96AC0E68C334">
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="_jjS9zcSjEeG8Jp4bGXoECA" language="http://www.java.com/java"><![CDATA[return cancelEvent != null && "true".equals(cancelEvent);]]></bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:task id="_0006BD10-6225-4270-9228-78A091CB4DD5" drools:taskName="SendCEPEvent" name="send cancel event">
<bpmn2:incoming>_530BCB23-F76E-4548-9C7F-56CF67299FE7</bpmn2:incoming>
<bpmn2:outgoing>_F6C72AFC-CC7A-4736-A039-431D07A07214</bpmn2:outgoing>
<bpmn2:ioSpecification id="_jjS9zsSjEeG8Jp4bGXoECA">
<bpmn2:dataInput id="_0006BD10-6225-4270-9228-78A091CB4DD5_TaskNameInput" name="TaskName"/>
<bpmn2:dataInput id="_0006BD10-6225-4270-9228-78A091CB4DD5_classNameInput" drools:dtype="String" itemSubjectRef="__0006BD10-6225-4270-9228-78A091CB4DD5_classNameInputItem" name="className"/>
<bpmn2:dataInput id="_0006BD10-6225-4270-9228-78A091CB4DD5_messageInput" drools:dtype="String" itemSubjectRef="__0006BD10-6225-4270-9228-78A091CB4DD5_messageInputItem" name="message"/>
<bpmn2:inputSet id="_jjS9z8SjEeG8Jp4bGXoECA">
<bpmn2:dataInputRefs>_0006BD10-6225-4270-9228-78A091CB4DD5_classNameInput</bpmn2:dataInputRefs>
<bpmn2:dataInputRefs>_0006BD10-6225-4270-9228-78A091CB4DD5_messageInput</bpmn2:dataInputRefs>
<bpmn2:dataInputRefs>_0006BD10-6225-4270-9228-78A091CB4DD5_TaskNameInput</bpmn2:dataInputRefs>
</bpmn2:inputSet>
<bpmn2:outputSet id="_jjS90MSjEeG8Jp4bGXoECA"/>
</bpmn2:ioSpecification>
<bpmn2:dataInputAssociation id="_jjS90cSjEeG8Jp4bGXoECA">
<bpmn2:targetRef>_0006BD10-6225-4270-9228-78A091CB4DD5_TaskNameInput</bpmn2:targetRef>
<bpmn2:assignment id="_jjS90sSjEeG8Jp4bGXoECA">
<bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_jjS908SjEeG8Jp4bGXoECA">SendCEPEvent</bpmn2:from>
<bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_jjS91MSjEeG8Jp4bGXoECA">_0006BD10-6225-4270-9228-78A091CB4DD5_TaskNameInput</bpmn2:to>
</bpmn2:assignment>
</bpmn2:dataInputAssociation>
</bpmn2:task>
</bpmn2:process>
<bpmndi:BPMNDiagram id="_jjTk0MSjEeG8Jp4bGXoECA">
<bpmndi:BPMNPlane id="_jjTk0cSjEeG8Jp4bGXoECA" bpmnElement="defaultPackage.ApprovalProcess">
<bpmndi:BPMNShape id="_jjTk0sSjEeG8Jp4bGXoECA" bpmnElement="_D253A2B8-94C8-40ED-AB87-71D8B77ADD7D">
<dc:Bounds height="30.0" width="30.0" x="54.0" y="115.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_jjTk08SjEeG8Jp4bGXoECA" bpmnElement="_FE94588E-712D-4A57-95BD-CA8382C3C50C">
<dc:Bounds height="80.0" width="100.0" x="246.0" y="88.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_jjTk1MSjEeG8Jp4bGXoECA" bpmnElement="_65741793-8AB3-41E0-B75B-0B3DE339C2C2">
<dc:Bounds height="80.0" width="100.0" x="390.0" y="75.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="_jjTk1cSjEeG8Jp4bGXoECA" bpmnElement="_09B44623-0669-4348-91F8-42CE456F8AB6">
<di:waypoint xsi:type="dc:Point" x="296.0" y="128.0"/>
<di:waypoint xsi:type="dc:Point" x="368.0" y="128.0"/>
<di:waypoint xsi:type="dc:Point" x="368.0" y="115.0"/>
<di:waypoint xsi:type="dc:Point" x="440.0" y="115.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_jjTk1sSjEeG8Jp4bGXoECA" bpmnElement="_519B9DCC-C93E-4523-ABC8-428AE267E2E3">
<dc:Bounds height="28.0" width="28.0" x="1304.0" y="110.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_jjTk18SjEeG8Jp4bGXoECA" bpmnElement="_8A5125F0-981E-443D-A092-38810F36C2B9">
<dc:Bounds height="77.0" width="121.0" x="795.0" y="89.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="_jjTk2MSjEeG8Jp4bGXoECA" bpmnElement="_D503622D-5506-4FA1-BB3E-678EDDE3B4F7">
<di:waypoint xsi:type="dc:Point" x="710.0" y="126.0"/>
<di:waypoint xsi:type="dc:Point" x="855.5" y="127.5"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_jjTk2cSjEeG8Jp4bGXoECA" bpmnElement="_DCC2C7A2-EEAB-411D-9AE0-5B7A1EDE36CD">
<dc:Bounds height="80.0" width="100.0" x="120.0" y="89.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="_jjTk2sSjEeG8Jp4bGXoECA" bpmnElement="_064EB3F8-63B9-4B4E-ABC2-7593A25C01F8">
<di:waypoint xsi:type="dc:Point" x="69.0" y="130.0"/>
<di:waypoint xsi:type="dc:Point" x="170.0" y="129.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="_jjTk28SjEeG8Jp4bGXoECA" bpmnElement="_47D0F873-F10F-40E0-96BE-D9783B108058">
<di:waypoint xsi:type="dc:Point" x="170.0" y="129.0"/>
<di:waypoint xsi:type="dc:Point" x="296.0" y="128.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_jjTk3MSjEeG8Jp4bGXoECA" bpmnElement="_03E58C7E-8740-4E5F-A370-204BB287C71A">
<dc:Bounds height="80.0" width="100.0" x="1170.0" y="86.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="_jjTk3cSjEeG8Jp4bGXoECA" bpmnElement="_2F03A0AF-488E-4FC9-913C-62191B1CF723">
<di:waypoint xsi:type="dc:Point" x="1220.0" y="126.0"/>
<di:waypoint xsi:type="dc:Point" x="1318.0" y="124.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_jjTk3sSjEeG8Jp4bGXoECA" bpmnElement="_55F057E4-E4C1-4AD9-A022-F6F5FC2E2335">
<dc:Bounds height="80.0" width="100.0" x="660.0" y="86.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_jjTk38SjEeG8Jp4bGXoECA" bpmnElement="_7C30E1FC-40A8-4EB3-AB01-BADABEE6C51E">
<dc:Bounds height="40.0" width="40.0" x="540.0" y="106.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="_jjTk4MSjEeG8Jp4bGXoECA" bpmnElement="_4D83139E-05F6-4220-A645-28451C82F1F7">
<di:waypoint xsi:type="dc:Point" x="440.0" y="115.0"/>
<di:waypoint xsi:type="dc:Point" x="500.0" y="115.0"/>
<di:waypoint xsi:type="dc:Point" x="500.0" y="126.0"/>
<di:waypoint xsi:type="dc:Point" x="560.0" y="126.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="_jjTk4cSjEeG8Jp4bGXoECA" bpmnElement="_A189ED2E-3DB9-4D44-8E2C-3791D251A416">
<di:waypoint xsi:type="dc:Point" x="560.0" y="126.0"/>
<di:waypoint xsi:type="dc:Point" x="710.0" y="126.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_jjTk4sSjEeG8Jp4bGXoECA" bpmnElement="_B0972385-91F8-4FAE-8959-E4126E3B7AAF">
<dc:Bounds height="40.0" width="40.0" x="961.0" y="106.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="_jjTk48SjEeG8Jp4bGXoECA" bpmnElement="_CB0BC34B-6BA0-48D3-8491-FDC133E33236">
<di:waypoint xsi:type="dc:Point" x="855.5" y="127.5"/>
<di:waypoint xsi:type="dc:Point" x="938.0" y="128.0"/>
<di:waypoint xsi:type="dc:Point" x="938.0" y="126.0"/>
<di:waypoint xsi:type="dc:Point" x="981.0" y="126.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_jjUL4MSjEeG8Jp4bGXoECA" bpmnElement="_128EA016-E19B-4082-980C-74D88DFE2823">
<dc:Bounds height="40.0" width="40.0" x="1080.0" y="105.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="_jjUL4cSjEeG8Jp4bGXoECA" bpmnElement="_F9D90C8E-D1A4-49BF-B44B-6D47DF679AA3">
<di:waypoint xsi:type="dc:Point" x="981.0" y="126.0"/>
<di:waypoint xsi:type="dc:Point" x="1100.0" y="125.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="_jjUL4sSjEeG8Jp4bGXoECA" bpmnElement="_D483825B-D318-400E-907D-95AAF070BAEF">
<di:waypoint xsi:type="dc:Point" x="1100.0" y="125.0"/>
<di:waypoint xsi:type="dc:Point" x="1220.0" y="126.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_jjUL48SjEeG8Jp4bGXoECA" bpmnElement="_FF52928C-D2DB-4905-968B-96AC0E68C334">
<dc:Bounds height="40.0" width="40.0" x="961.0" y="285.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="_jjUL5MSjEeG8Jp4bGXoECA" bpmnElement="_989567DE-8258-48B6-B94D-2560D00288CE">
<di:waypoint xsi:type="dc:Point" x="560.0" y="126.0"/>
<di:waypoint xsi:type="dc:Point" x="560.0" y="305.0"/>
<di:waypoint xsi:type="dc:Point" x="981.0" y="305.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="_jjUL5cSjEeG8Jp4bGXoECA" bpmnElement="_530BCB23-F76E-4548-9C7F-56CF67299FE7">
<di:waypoint xsi:type="dc:Point" x="981.0" y="305.0"/>
<di:waypoint xsi:type="dc:Point" x="1100.0" y="305.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="_jjUL5sSjEeG8Jp4bGXoECA" bpmnElement="_F6C72AFC-CC7A-4736-A039-431D07A07214">
<di:waypoint xsi:type="dc:Point" x="1100.0" y="305.0"/>
<di:waypoint xsi:type="dc:Point" x="1100.0" y="125.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="_jjUL58SjEeG8Jp4bGXoECA" bpmnElement="_EDE5E8FE-154C-4412-872F-394D4E64946B">
<di:waypoint xsi:type="dc:Point" x="981.0" y="126.0"/>
<di:waypoint xsi:type="dc:Point" x="981.0" y="305.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_jjUL6MSjEeG8Jp4bGXoECA" bpmnElement="_0006BD10-6225-4270-9228-78A091CB4DD5">
<dc:Bounds height="80.0" width="100.0" x="1050.0" y="265.0"/>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment