sample-process-models/misc/qa/test-business-rule-task/test-business-rule-task.bpmn

97 lines
4.6 KiB
Plaintext
Raw Normal View History

2024-07-15 10:40:05 -04:00
<?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="Process_test_business_rule_task_0b28eid" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_17db3yp</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_17db3yp" sourceRef="StartEvent_1" targetRef="Activity_0ar2orj" />
<bpmn:endEvent id="EndEvent_1">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>The process instance completed successfully.</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1mdoyh9</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0i1xcwn" sourceRef="Activity_0ar2orj" targetRef="Activity_1hn000a" />
<bpmn:sequenceFlow id="Flow_1mdoyh9" sourceRef="Activity_1nujyti" targetRef="EndEvent_1" />
<bpmn:userTask id="Activity_0ar2orj" name="Get Favorite Fruit">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="fruits-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="fruits-uischema.json" />
</spiffworkflow:properties>
<spiffworkflow:preScript>{
"fruits": [
{
"value": "apples",
"label": "Apples"
},
{
"value": "oranges",
"label": "Oranges"
},
{
"value": "bananas",
"label": "Bananas"
}
]
}</spiffworkflow:preScript>
</bpmn:extensionElements>
<bpmn:incoming>Flow_17db3yp</bpmn:incoming>
<bpmn:outgoing>Flow_0i1xcwn</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_0p1vpc0" sourceRef="Activity_1hn000a" targetRef="Activity_1nujyti" />
<bpmn:businessRuleTask id="Activity_1hn000a" name="Decide Color">
<bpmn:extensionElements>
<spiffworkflow:calledDecisionId>fruit_colors</spiffworkflow:calledDecisionId>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0i1xcwn</bpmn:incoming>
<bpmn:outgoing>Flow_0p1vpc0</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:manualTask id="Activity_1nujyti" name="Display Color">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>{{favoriteFruit}} are {{color}}!</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0p1vpc0</bpmn:incoming>
<bpmn:outgoing>Flow_1mdoyh9</bpmn:outgoing>
</bpmn:manualTask>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_test_business_rule_task_0b28eid">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="-88" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_14za570_di" bpmnElement="EndEvent_1">
<dc:Bounds x="532" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_006yusq_di" bpmnElement="Activity_0ar2orj">
<dc:Bounds x="10" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0q99wse_di" bpmnElement="Activity_1hn000a">
<dc:Bounds x="180" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_154c4ss_di" bpmnElement="Activity_1nujyti">
<dc:Bounds x="360" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_17db3yp_di" bpmnElement="Flow_17db3yp">
<di:waypoint x="-52" y="177" />
<di:waypoint x="10" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0i1xcwn_di" bpmnElement="Flow_0i1xcwn">
<di:waypoint x="110" y="177" />
<di:waypoint x="180" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1mdoyh9_di" bpmnElement="Flow_1mdoyh9">
<di:waypoint x="460" y="177" />
<di:waypoint x="532" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0p1vpc0_di" bpmnElement="Flow_0p1vpc0">
<di:waypoint x="280" y="177" />
<di:waypoint x="360" y="177" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>