mirror of
https://github.com/sartography/sample-process-models.git
synced 2025-02-24 21:58:18 +00:00
101 lines
5.1 KiB
XML
101 lines
5.1 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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
|
|
<bpmn:process id="Process_81k3gh6" isExecutable="true">
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>Flow_04t49zv</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_04t49zv" sourceRef="StartEvent_1" targetRef="Activity_0wflw9z" />
|
|
<bpmn:userTask id="Activity_0wflw9z" name="Select User To Test">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:properties>
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="select_user.json" />
|
|
</spiffworkflow:properties>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_04t49zv</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1by81ac</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
<bpmn:endEvent id="Event_0yjnug4">
|
|
<bpmn:incoming>Flow_0q5cs4y</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_0q5cs4y" sourceRef="Activity_0pdrn26" targetRef="Event_0yjnug4" />
|
|
<bpmn:businessRuleTask id="Activity_0fqwhd1" name="Determine Users Group">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:calledDecisionId>users_to_groups</spiffworkflow:calledDecisionId>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_1by81ac</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_194nkr6</bpmn:outgoing>
|
|
</bpmn:businessRuleTask>
|
|
<bpmn:businessRuleTask id="Activity_0iom85m" name="Determine Permissions">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:calledDecisionId>groups_to_permissions</spiffworkflow:calledDecisionId>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_194nkr6</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0hg2xwi</bpmn:outgoing>
|
|
</bpmn:businessRuleTask>
|
|
<bpmn:manualTask id="Activity_0pdrn26" name="Display Permissions">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:instructionsForEndUser># Permissions for {{user}}
|
|
If this were a real system, and you logged in as {{user}}, you would have the following groups and permissions based on the current business rules defined in this workflow.
|
|
|
|
## Groups
|
|
|
|
{% for group in groups %}
|
|
* {{ group }}
|
|
{% endfor %}
|
|
|
|
## Permissions
|
|
{% for permission in permissions %}
|
|
* {{ permission }}
|
|
{% endfor %}</spiffworkflow:instructionsForEndUser>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0hg2xwi</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0q5cs4y</bpmn:outgoing>
|
|
</bpmn:manualTask>
|
|
<bpmn:sequenceFlow id="Flow_1by81ac" sourceRef="Activity_0wflw9z" targetRef="Activity_0fqwhd1" />
|
|
<bpmn:sequenceFlow id="Flow_194nkr6" sourceRef="Activity_0fqwhd1" targetRef="Activity_0iom85m" />
|
|
<bpmn:sequenceFlow id="Flow_0hg2xwi" sourceRef="Activity_0iom85m" targetRef="Activity_0pdrn26" />
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_81k3gh6">
|
|
<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_03wbst8_di" bpmnElement="Activity_0wflw9z">
|
|
<dc:Bounds x="270" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_0yjnug4_di" bpmnElement="Event_0yjnug4">
|
|
<dc:Bounds x="912" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1afo4x3_di" bpmnElement="Activity_0fqwhd1">
|
|
<dc:Bounds x="420" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0e33fg2_di" bpmnElement="Activity_0iom85m">
|
|
<dc:Bounds x="590" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_16w91n5_di" bpmnElement="Activity_0pdrn26">
|
|
<dc:Bounds x="750" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_04t49zv_di" bpmnElement="Flow_04t49zv">
|
|
<di:waypoint x="215" y="177" />
|
|
<di:waypoint x="270" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0q5cs4y_di" bpmnElement="Flow_0q5cs4y">
|
|
<di:waypoint x="850" y="177" />
|
|
<di:waypoint x="912" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1by81ac_di" bpmnElement="Flow_1by81ac">
|
|
<di:waypoint x="370" y="177" />
|
|
<di:waypoint x="420" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_194nkr6_di" bpmnElement="Flow_194nkr6">
|
|
<di:waypoint x="520" y="177" />
|
|
<di:waypoint x="590" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0hg2xwi_di" bpmnElement="Flow_0hg2xwi">
|
|
<di:waypoint x="690" y="177" />
|
|
<di:waypoint x="750" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|