sample-process-models/misc/category_number_one/dmn-boolean-test/boolean-test.bpmn

134 lines
6.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="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:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
<bpmn:process id="Proccess_xy8tu6y" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_0n9fche</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_0n9fche" sourceRef="StartEvent_1" targetRef="Activity_00rqhb1" />
<bpmn:businessRuleTask id="Activity_15gcg70" name="Run Boolean Test: Table 1">
<bpmn:extensionElements>
<spiffworkflow:calledDecisionId>Boolean_Test_Table_1</spiffworkflow:calledDecisionId>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0dpcshe</bpmn:incoming>
<bpmn:outgoing>Flow_1fddirq</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:sequenceFlow id="Flow_0dpcshe" sourceRef="Activity_00rqhb1" targetRef="Activity_15gcg70" />
<bpmn:scriptTask id="Activity_00rqhb1" name="Set Values">
<bpmn:incoming>Flow_0n9fche</bpmn:incoming>
<bpmn:outgoing>Flow_0dpcshe</bpmn:outgoing>
<bpmn:script>a = -1</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_1fddirq" sourceRef="Activity_15gcg70" targetRef="Activity_0g7tg9d" />
<bpmn:manualTask id="Activity_1pldlic" name="Show Result">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>**Table Rules**
| Table - Rule | a == 0 | a &gt; 0 | a &lt; 0 | a != 0 |
|------|-------|-------|-------|------|
| 1 - a equals zero | True | False | False | False |
| 2 - a is greater than zero | False | True | False | True |
| 3 - a is less than zero | False | False | True | True |
| 4 - a does not equal zero | False | True | True | True |
**Input**
a = {{ a }}
**Output**
*Table 1:* {{ result_table_1 }}
*Table 2:* {{ result_table_2 }}
*Table 3:* {{ result_table_3 }}
*Table 4:* {{ result_table_4 }} </spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1srt3sj</bpmn:incoming>
<bpmn:outgoing>Flow_14fc4g0</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:endEvent id="Event_0k1k0cq">
<bpmn:incoming>Flow_14fc4g0</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_14fc4g0" sourceRef="Activity_1pldlic" targetRef="Event_0k1k0cq" />
<bpmn:businessRuleTask id="Activity_0g7tg9d" name="Run Boolean Test: Table 2">
<bpmn:extensionElements>
<spiffworkflow:calledDecisionId>Boolean_Test_Table_2</spiffworkflow:calledDecisionId>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1fddirq</bpmn:incoming>
<bpmn:outgoing>Flow_0k0672a</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:sequenceFlow id="Flow_0k0672a" sourceRef="Activity_0g7tg9d" targetRef="Activity_0ny0zpp" />
<bpmn:businessRuleTask id="Activity_0ny0zpp" name="Run Boolean Test: Table 3">
<bpmn:extensionElements>
<spiffworkflow:calledDecisionId>Boolean_Test_Table_3</spiffworkflow:calledDecisionId>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0k0672a</bpmn:incoming>
<bpmn:outgoing>Flow_1vfi9qc</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:sequenceFlow id="Flow_1vfi9qc" sourceRef="Activity_0ny0zpp" targetRef="Activity_0ha05ne" />
<bpmn:businessRuleTask id="Activity_0ha05ne" name="Run Boolean Test: Table 4">
<bpmn:extensionElements>
<spiffworkflow:calledDecisionId>Boolean_Test_Table_4</spiffworkflow:calledDecisionId>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1vfi9qc</bpmn:incoming>
<bpmn:outgoing>Flow_1srt3sj</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:sequenceFlow id="Flow_1srt3sj" sourceRef="Activity_0ha05ne" targetRef="Activity_1pldlic" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Proccess_xy8tu6y">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="179" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0t7mfd2_di" bpmnElement="Activity_15gcg70">
<dc:Bounds x="450" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0r9f4b9_di" bpmnElement="Activity_00rqhb1">
<dc:Bounds x="280" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0dvyu8t_di" bpmnElement="Activity_1pldlic">
<dc:Bounds x="1150" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0k1k0cq_di" bpmnElement="Event_0k1k0cq">
<dc:Bounds x="1332" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_057ddmy" bpmnElement="Activity_0g7tg9d">
<dc:Bounds x="620" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_07ilf03" bpmnElement="Activity_0ny0zpp">
<dc:Bounds x="790" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0b9y2n4" bpmnElement="Activity_0ha05ne">
<dc:Bounds x="970" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0n9fche_di" bpmnElement="Flow_0n9fche">
<di:waypoint x="215" y="177" />
<di:waypoint x="280" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0dpcshe_di" bpmnElement="Flow_0dpcshe">
<di:waypoint x="380" y="177" />
<di:waypoint x="450" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1fddirq_di" bpmnElement="Flow_1fddirq">
<di:waypoint x="550" y="177" />
<di:waypoint x="620" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_14fc4g0_di" bpmnElement="Flow_14fc4g0">
<di:waypoint x="1250" y="177" />
<di:waypoint x="1332" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0k0672a_di" bpmnElement="Flow_0k0672a">
<di:waypoint x="720" y="177" />
<di:waypoint x="790" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1vfi9qc_di" bpmnElement="Flow_1vfi9qc">
<di:waypoint x="890" y="177" />
<di:waypoint x="970" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1srt3sj_di" bpmnElement="Flow_1srt3sj">
<di:waypoint x="1070" y="177" />
<di:waypoint x="1150" y="177" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>