demo-process-models/examples/0-4-request-permissions/signupCustomer.bpmn

152 lines
8.0 KiB
Plaintext
Raw Normal View History

2023-06-02 20:43:59 +00: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: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">
2023-06-09 14:16:42 +00:00
<bpmn:collaboration id="Collaboration_0m1omy3">
<bpmn:participant id="Participant_0e9zwln" processRef="Process_signupCustomer" />
</bpmn:collaboration>
2023-06-02 20:43:59 +00:00
<bpmn:process id="Process_signupCustomer" name="signupCustomer" isExecutable="true">
2023-06-09 14:16:42 +00:00
<bpmn:laneSet id="LaneSet_1rtlpg3">
<bpmn:lane id="Lane_1h14pj9">
<bpmn:flowNodeRef>Event_1dzgfyn</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_12ze3hm</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_1w57gd8</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_0c9ts6d" name="admin">
<bpmn:flowNodeRef>Activity_1pxm4b6</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Event_0joe8o3</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Event_1dzgfyn">
<bpmn:outgoing>Flow_1nohmyy</bpmn:outgoing>
2023-06-02 20:43:59 +00:00
</bpmn:startEvent>
2023-06-09 14:16:42 +00:00
<bpmn:serviceTask id="Activity_12ze3hm" name="Notify Sartography">
2023-06-02 20:43:59 +00:00
<bpmn:extensionElements>
2023-06-09 14:16:42 +00:00
<spiffworkflow:serviceTaskOperator id="slack/PostMessage" resultVariable="slack_result">
<spiffworkflow:parameters>
<spiffworkflow:parameter id="channel" type="str" value="&#39;team&#39;" />
<spiffworkflow:parameter id="message" type="str" value="&#39;New Demo Request!!! Please visit the demo site at https://spiffdemo.org and look at tasks assigned to the Admin group.&#39;" />
2023-06-09 14:16:42 +00:00
<spiffworkflow:parameter id="token" type="str" value="&#39;secret:slack_token&#39;" />
</spiffworkflow:parameters>
</spiffworkflow:serviceTaskOperator>
<spiffworkflow:preScript>current_user = get_current_user()</spiffworkflow:preScript>
2023-06-02 20:43:59 +00:00
</bpmn:extensionElements>
2023-06-09 14:16:42 +00:00
<bpmn:incoming>Flow_13pjly3</bpmn:incoming>
<bpmn:outgoing>Flow_0eg1ebo</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_1nohmyy" sourceRef="Event_1dzgfyn" targetRef="Activity_1w57gd8" />
<bpmn:sequenceFlow id="Flow_13pjly3" sourceRef="Activity_1w57gd8" targetRef="Activity_12ze3hm" />
<bpmn:sequenceFlow id="Flow_0eg1ebo" sourceRef="Activity_12ze3hm" targetRef="Activity_1pxm4b6" />
<bpmn:userTask id="Activity_1w57gd8" name="Request Form">
2023-06-02 20:43:59 +00:00
<bpmn:extensionElements>
<spiffworkflow:properties>
2023-06-09 14:16:42 +00:00
<spiffworkflow:property name="formJsonSchemaFilename" value="request-a-playground-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="request-a-playground-uischema.json" />
2023-06-02 20:43:59 +00:00
</spiffworkflow:properties>
2023-06-09 14:16:42 +00:00
<spiffworkflow:instructionsForEndUser># Terms of Service
By submitting this request you agree to be bound by our [Terms of Service Agreement](https://www.spiffworkflow.org/pages/demo_terms_of_service/). Please understand:
- This demo server is provided for evaluations purposes only.
- We reserve the right to remove any processes you create at any time and for any reason.
# Please tell us a little about yourself
Please complete the form below. Your request will be sent off to our administrative team and we will get back in touch with you when we have created your account.</spiffworkflow:instructionsForEndUser>
2023-06-02 20:43:59 +00:00
</bpmn:extensionElements>
2023-06-09 14:16:42 +00:00
<bpmn:incoming>Flow_1nohmyy</bpmn:incoming>
<bpmn:outgoing>Flow_13pjly3</bpmn:outgoing>
2023-06-02 20:43:59 +00:00
</bpmn:userTask>
2023-06-09 14:16:42 +00:00
<bpmn:sequenceFlow id="Flow_1m0dgi9" sourceRef="Activity_1pxm4b6" targetRef="Event_0joe8o3" />
<bpmn:manualTask id="Activity_1pxm4b6" name="Setup Permissions and Notify Participant">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>## {{current_user.username}} requests a Playground
* Full Name: {{full_name}}
* Organization: {{organization}}
* Title/Role: {{role}}
### Purpose:
{{purpose}}
## Instructions:
We did not yet automate anything. So please make sure you do all of the following:
[] Create a new Process Group on the Demo Server
[] Update permissions so this person (and only this person) can see, execute, and otherwise manage the new process group.
[] Notify this person that the process group is available for them to use.</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0eg1ebo</bpmn:incoming>
<bpmn:outgoing>Flow_1m0dgi9</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:endEvent id="Event_0joe8o3">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser># This request was completed.
* User ID: {{current_user.username}}
* Full Name: {{full_name}}
* Organization: {{organization}}
* Title/Role: {{role}}
### Purpose:
{{purpose}}
</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1m0dgi9</bpmn:incoming>
</bpmn:endEvent>
<bpmn:textAnnotation id="TextAnnotation_0z7s8uu">
<bpmn:text>Keeping this super simple for now, but in the future we will likely automate the creation of the playground, the updating of permissions, and notifying the requester.   As it stands, this provides good examples of how to make a service call to post a message to Slack, and how lanes can be used to assign tasks to specific people and groups.</bpmn:text>
2023-06-09 14:16:42 +00:00
</bpmn:textAnnotation>
2023-06-02 20:43:59 +00:00
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
2023-06-09 14:16:42 +00:00
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_0m1omy3">
<bpmndi:BPMNShape id="Participant_0e9zwln_di" bpmnElement="Participant_0e9zwln" isHorizontal="true">
<dc:Bounds x="160" y="210" width="650" height="310" />
2023-06-02 20:43:59 +00:00
</bpmndi:BPMNShape>
2023-06-09 14:16:42 +00:00
<bpmndi:BPMNShape id="Lane_0c9ts6d_di" bpmnElement="Lane_0c9ts6d" isHorizontal="true">
<dc:Bounds x="190" y="360" width="620" height="160" />
2023-06-02 20:43:59 +00:00
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
2023-06-09 14:16:42 +00:00
<bpmndi:BPMNShape id="Lane_1h14pj9_di" bpmnElement="Lane_1h14pj9" isHorizontal="true">
<dc:Bounds x="190" y="210" width="620" height="150" />
2023-06-02 20:43:59 +00:00
</bpmndi:BPMNShape>
2023-06-09 14:16:42 +00:00
<bpmndi:BPMNShape id="Event_1dzgfyn_di" bpmnElement="Event_1dzgfyn">
<dc:Bounds x="262" y="257" width="36" height="36" />
2023-06-02 20:43:59 +00:00
</bpmndi:BPMNShape>
2023-06-09 14:16:42 +00:00
<bpmndi:BPMNShape id="Activity_198r38z_di" bpmnElement="Activity_12ze3hm">
<dc:Bounds x="510" y="235" width="100" height="80" />
2023-06-02 20:43:59 +00:00
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
2023-06-09 14:16:42 +00:00
<bpmndi:BPMNShape id="Activity_1mlx59p_di" bpmnElement="Activity_1w57gd8">
<dc:Bounds x="350" y="235" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0dpkpuq_di" bpmnElement="Activity_1pxm4b6">
<dc:Bounds x="610" y="415" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0joe8o3_di" bpmnElement="Event_0joe8o3">
<dc:Bounds x="742" y="437" width="36" height="36" />
2023-06-02 20:43:59 +00:00
</bpmndi:BPMNShape>
2023-06-09 14:16:42 +00:00
<bpmndi:BPMNShape id="TextAnnotation_0z7s8uu_di" bpmnElement="TextAnnotation_0z7s8uu">
<dc:Bounds x="300" y="370" width="276" height="125" />
2023-06-02 20:43:59 +00:00
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
2023-06-09 14:16:42 +00:00
<bpmndi:BPMNEdge id="Flow_1nohmyy_di" bpmnElement="Flow_1nohmyy">
<di:waypoint x="298" y="275" />
<di:waypoint x="350" y="275" />
2023-06-02 20:43:59 +00:00
</bpmndi:BPMNEdge>
2023-06-09 14:16:42 +00:00
<bpmndi:BPMNEdge id="Flow_13pjly3_di" bpmnElement="Flow_13pjly3">
<di:waypoint x="450" y="275" />
<di:waypoint x="510" y="275" />
2023-06-02 20:43:59 +00:00
</bpmndi:BPMNEdge>
2023-06-09 14:16:42 +00:00
<bpmndi:BPMNEdge id="Flow_0eg1ebo_di" bpmnElement="Flow_0eg1ebo">
<di:waypoint x="610" y="275" />
<di:waypoint x="660" y="275" />
<di:waypoint x="660" y="415" />
2023-06-02 20:43:59 +00:00
</bpmndi:BPMNEdge>
2023-06-09 14:16:42 +00:00
<bpmndi:BPMNEdge id="Flow_1m0dgi9_di" bpmnElement="Flow_1m0dgi9">
<di:waypoint x="710" y="455" />
<di:waypoint x="742" y="455" />
2023-06-02 20:43:59 +00:00
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>