User: alex clicked save for category_number_one/dmn-boolean-test/boolean-test.bpmn
This commit is contained in:
parent
a1e9d9660c
commit
953735daa9
|
@ -0,0 +1,70 @@
|
|||
<?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">
|
||||
<bpmn:extensionElements>
|
||||
<spiffworkflow:calledDecisionId>Boolean_Test</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
|
||||
b = 1</bpmn:script>
|
||||
</bpmn:scriptTask>
|
||||
<bpmn:sequenceFlow id="Flow_1fddirq" sourceRef="Activity_15gcg70" targetRef="Activity_1pldlic" />
|
||||
<bpmn:manualTask id="Activity_1pldlic" name="Show Result">
|
||||
<bpmn:extensionElements>
|
||||
<spiffworkflow:instructionsForEndUser>{{ result }}</spiffworkflow:instructionsForEndUser>
|
||||
</bpmn:extensionElements>
|
||||
<bpmn:incoming>Flow_1fddirq</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: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: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="620" y="137" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Event_0k1k0cq_di" bpmnElement="Event_0k1k0cq">
|
||||
<dc:Bounds x="792" y="159" width="36" height="36" />
|
||||
</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="720" y="177" />
|
||||
<di:waypoint x="792" y="177" />
|
||||
</bpmndi:BPMNEdge>
|
||||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
</bpmn:definitions>
|
|
@ -0,0 +1,80 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:biodi="http://bpmn.io/schema/dmn/biodi/2.0" id="Definitions_76910d7" name="DRD" namespace="http://camunda.org/schema/1.0/dmn">
|
||||
<decision id="Boolean_Test" name="Boolean Test">
|
||||
<decisionTable id="decisionTable_1">
|
||||
<input id="input_1" label="Does a == 1">
|
||||
<inputExpression id="inputExpression_1" typeRef="boolean">
|
||||
<text>a==1</text>
|
||||
</inputExpression>
|
||||
</input>
|
||||
<input id="InputClause_1w09lsj" label="Is b > 0">
|
||||
<inputExpression id="LiteralExpression_17h4b6k" typeRef="boolean">
|
||||
<text>b > 0</text>
|
||||
</inputExpression>
|
||||
</input>
|
||||
<output id="output_1" label="Text" typeRef="string" biodi:width="354" />
|
||||
<rule id="DecisionRule_1yvuioe">
|
||||
<inputEntry id="UnaryTests_0ifbgfr">
|
||||
<text>True</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_03t6t1u">
|
||||
<text>True</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_1db5nd9">
|
||||
<text>"a equals one and b is greater than zero" </text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_0jolxn4">
|
||||
<inputEntry id="UnaryTests_0igos7s">
|
||||
<text>True</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_0m2lj6h">
|
||||
<text>False</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_0pzx2gg">
|
||||
<text>"a equals one and b is not greater than zero" </text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_1gtenjr">
|
||||
<inputEntry id="UnaryTests_0a6awlw">
|
||||
<text>False</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_18fef0r">
|
||||
<text>True</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_16r3oxl">
|
||||
<text>"a does not equal one and b is greater than zero" </text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_0hgnl41">
|
||||
<inputEntry id="UnaryTests_06v3dew">
|
||||
<text>False</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_1iq199i">
|
||||
<text>False</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_0z0gczt">
|
||||
<text>"a does not equal one and b is not greater than zero" </text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_1wl7xlj">
|
||||
<inputEntry id="UnaryTests_127qjv2">
|
||||
<text></text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_0s3u6uu">
|
||||
<text></text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_0ge9mo6">
|
||||
<text>"did not match anything"</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
</decisionTable>
|
||||
</decision>
|
||||
<dmndi:DMNDI>
|
||||
<dmndi:DMNDiagram id="DMNDiagram_1cykosu">
|
||||
<dmndi:DMNShape id="DMNShape_1dhfq2s" dmnElementRef="Boolean_Test">
|
||||
<dc:Bounds height="80" width="180" x="157" y="151" />
|
||||
</dmndi:DMNShape>
|
||||
</dmndi:DMNDiagram>
|
||||
</dmndi:DMNDI>
|
||||
</definitions>
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"description": "Test if DMN tables are evaluating boolean expression correctly",
|
||||
"display_name": "DMN Boolean Test",
|
||||
"display_order": 17,
|
||||
"exception_notification_addresses": [],
|
||||
"fault_or_suspend_on_exception": "fault",
|
||||
"files": [],
|
||||
"id": "category_number_one/dmn-boolean-test",
|
||||
"is_review": false,
|
||||
"primary_file_name": "boolean-test.bpmn",
|
||||
"primary_process_id": "Proccess_xy8tu6y"
|
||||
}
|
Loading…
Reference in New Issue