mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-20 11:48:16 +00:00
No Previous Task, No Last Task, No Task List. Just the current task, and the Navigation. Use the token endpoint to set the current task, even if it is a "READY" task in the api. Previous Task can be set by identifying the prior task in the Navigation (I'm hoping) Prefering camel case to snake case on all new apis. Maybe clean the rest up later.
116 lines
6.4 KiB
XML
116 lines
6.4 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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1j7idla" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.7.3">
|
|
<bpmn:process id="Process_18biih5" isExecutable="true">
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>SequenceFlow_1pnq3kg</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="SequenceFlow_1pnq3kg" sourceRef="StartEvent_1" targetRef="Task_Has_Bananas" />
|
|
<bpmn:userTask id="Task_Has_Bananas" name="Enter Do You Have Bananas" camunda:formKey="bananas_form">
|
|
<bpmn:extensionElements>
|
|
<camunda:formData>
|
|
<camunda:formField id="has_bananas" label="Do you have bananas?" type="boolean" />
|
|
</camunda:formData>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>SequenceFlow_1pnq3kg</bpmn:incoming>
|
|
<bpmn:outgoing>SequenceFlow_1lmkn99</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
<bpmn:sequenceFlow id="SequenceFlow_1lmkn99" sourceRef="Task_Has_Bananas" targetRef="ExclusiveGateway_003amsm" />
|
|
<bpmn:exclusiveGateway id="ExclusiveGateway_003amsm" name="Has Bananas?">
|
|
<bpmn:incoming>SequenceFlow_1lmkn99</bpmn:incoming>
|
|
<bpmn:outgoing>SequenceFlow_Yes_Bananas</bpmn:outgoing>
|
|
<bpmn:outgoing>SequenceFlow_No_Bananas</bpmn:outgoing>
|
|
</bpmn:exclusiveGateway>
|
|
<bpmn:sequenceFlow id="SequenceFlow_Yes_Bananas" name="yes " sourceRef="ExclusiveGateway_003amsm" targetRef="Task_Num_Bananas">
|
|
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">has_bananas == True</bpmn:conditionExpression>
|
|
</bpmn:sequenceFlow>
|
|
<bpmn:sequenceFlow id="SequenceFlow_No_Bananas" name="no" sourceRef="ExclusiveGateway_003amsm" targetRef="Task_Why_No_Bananas">
|
|
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">has_bananas == False</bpmn:conditionExpression>
|
|
</bpmn:sequenceFlow>
|
|
<bpmn:userTask id="Task_Num_Bananas" name="Number of Bananas" camunda:formKey="banana_count">
|
|
<bpmn:extensionElements>
|
|
<camunda:formData>
|
|
<camunda:formField id="num_bananas" label="How Many Bananas do you have?" type="long" defaultValue="1" />
|
|
</camunda:formData>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>SequenceFlow_Yes_Bananas</bpmn:incoming>
|
|
<bpmn:outgoing>SequenceFlow_02z84p5</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
<bpmn:userTask id="Task_Why_No_Bananas" name="Why no bananas" camunda:formKey="no_bananas">
|
|
<bpmn:extensionElements>
|
|
<camunda:formData>
|
|
<camunda:formField id="why_no_bananas" label="Why you have no bananas?" type="string" defaultValue="I don't know." />
|
|
</camunda:formData>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>SequenceFlow_No_Bananas</bpmn:incoming>
|
|
<bpmn:outgoing>SequenceFlow_08djf6q</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
<bpmn:endEvent id="EndEvent_063bpg6">
|
|
<bpmn:incoming>SequenceFlow_02z84p5</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="SequenceFlow_02z84p5" sourceRef="Task_Num_Bananas" targetRef="EndEvent_063bpg6" />
|
|
<bpmn:endEvent id="EndEvent_1hwtug4">
|
|
<bpmn:incoming>SequenceFlow_08djf6q</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="SequenceFlow_08djf6q" sourceRef="Task_Why_No_Bananas" targetRef="EndEvent_1hwtug4" />
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_18biih5">
|
|
<bpmndi:BPMNEdge id="SequenceFlow_08djf6q_di" bpmnElement="SequenceFlow_08djf6q">
|
|
<di:waypoint x="660" y="230" />
|
|
<di:waypoint x="752" y="230" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="SequenceFlow_02z84p5_di" bpmnElement="SequenceFlow_02z84p5">
|
|
<di:waypoint x="660" y="117" />
|
|
<di:waypoint x="752" y="117" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="SequenceFlow_12acevn_di" bpmnElement="SequenceFlow_No_Bananas">
|
|
<di:waypoint x="450" y="142" />
|
|
<di:waypoint x="450" y="230" />
|
|
<di:waypoint x="560" y="230" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="459" y="183" width="13" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="SequenceFlow_0f3vx1l_di" bpmnElement="SequenceFlow_Yes_Bananas">
|
|
<di:waypoint x="475" y="117" />
|
|
<di:waypoint x="560" y="117" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="509" y="99" width="18" height="40" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="SequenceFlow_1lmkn99_di" bpmnElement="SequenceFlow_1lmkn99">
|
|
<di:waypoint x="370" y="117" />
|
|
<di:waypoint x="425" y="117" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="SequenceFlow_1pnq3kg_di" bpmnElement="SequenceFlow_1pnq3kg">
|
|
<di:waypoint x="215" y="117" />
|
|
<di:waypoint x="270" y="117" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
<dc:Bounds x="179" y="99" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="UserTask_0u8fjmw_di" bpmnElement="Task_Has_Bananas">
|
|
<dc:Bounds x="270" y="77" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="ExclusiveGateway_14wqqsi_di" bpmnElement="ExclusiveGateway_003amsm" isMarkerVisible="true">
|
|
<dc:Bounds x="425" y="92" width="50" height="50" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="415" y="62" width="73" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="UserTask_0ht939a_di" bpmnElement="Task_Num_Bananas">
|
|
<dc:Bounds x="560" y="77" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="UserTask_0gwjzr9_di" bpmnElement="Task_Why_No_Bananas">
|
|
<dc:Bounds x="560" y="190" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="EndEvent_063bpg6_di" bpmnElement="EndEvent_063bpg6">
|
|
<dc:Bounds x="752" y="99" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="EndEvent_1hwtug4_di" bpmnElement="EndEvent_1hwtug4">
|
|
<dc:Bounds x="752" y="212" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|