User: alex clicked save for execute-procure-to-pay/cc-invoice-approval-process/cc-invoice-approval-process-v2.bpmn
This commit is contained in:
parent
d3660531a2
commit
ea79150149
|
@ -533,10 +533,36 @@ _**Due Date:**_ {{ invoice.dueDate}} </spiffworkflow:instructionsForEndUser>
|
|||
<spiffworkflow:preScript># Set who for find
|
||||
find_user = userKeycloak
|
||||
isCurrentUser = False</spiffworkflow:preScript>
|
||||
<spiffworkflow:postScript />
|
||||
<spiffworkflow:postScript># Set Project Lead Info
|
||||
project_lead_info = {}
|
||||
project_lead_info["full_name"] = userFullName
|
||||
project_lead_info["first_name"] = userFirstName
|
||||
project_lead_info["email"] = userEmail
|
||||
project_lead_info["time_zone"] = userTimeZone
|
||||
project_lead_info["time_format"] = userTimeFormat
|
||||
project_lead_info["date_format"] = userDateFormat
|
||||
project_lead_info["status_key"] = userStatusKey
|
||||
|
||||
# Move to pre-script of Waku Message
|
||||
# Set Time Zone
|
||||
time_zone = project_lead_info["time_zone"]
|
||||
|
||||
# Set Time Format
|
||||
time_format = project_lead_info["time_format"]
|
||||
|
||||
# Set Date Format
|
||||
time_format = project_lead_info["date_format"]
|
||||
|
||||
del(userFullName)
|
||||
del(userFirstName)
|
||||
del(userEmail)
|
||||
del(userTimeZone)
|
||||
del(userTimeFormat)
|
||||
del(userDateFormat)
|
||||
del(userStatusKey)</spiffworkflow:postScript>
|
||||
</bpmn:extensionElements>
|
||||
<bpmn:incoming>Flow_0bv17h4</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_09jcr0u</bpmn:outgoing>
|
||||
<bpmn:outgoing>Flow_1jor3kc</bpmn:outgoing>
|
||||
</bpmn:callActivity>
|
||||
<bpmn:serviceTask id="Activity_1ve0iqu" name="Waku Message: Notify Proejct Lead">
|
||||
<bpmn:extensionElements>
|
||||
|
@ -557,12 +583,10 @@ isCurrentUser = False</spiffworkflow:preScript>
|
|||
task_id = "waku_notify_project_lead"
|
||||
isSetMessage = True</spiffworkflow:preScript>
|
||||
</bpmn:extensionElements>
|
||||
<bpmn:incoming>Flow_0c20bae</bpmn:incoming>
|
||||
<bpmn:incoming>Flow_1jor3kc</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_0re50gq</bpmn:outgoing>
|
||||
</bpmn:callActivity>
|
||||
<bpmn:scriptTask id="Activity_1jtcvfx" name="Temp Post Script" scriptFormat="python">
|
||||
<bpmn:incoming>Flow_09jcr0u</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_0c20bae</bpmn:outgoing>
|
||||
<bpmn:script># Set Project Lead Info
|
||||
project_lead_info = {}
|
||||
project_lead_info["full_name"] = userFullName
|
||||
|
@ -610,8 +634,7 @@ isCurrentUser = False</bpmn:script>
|
|||
</bpmn:callActivity>
|
||||
<bpmn:sequenceFlow id="Flow_01ki4jt" sourceRef="Activity_1982sk7" targetRef="Activity_1r3o0bm" />
|
||||
<bpmn:sequenceFlow id="Flow_0bv17h4" sourceRef="Activity_1r3o0bm" targetRef="Activity_00b66gy" />
|
||||
<bpmn:sequenceFlow id="Flow_09jcr0u" sourceRef="Activity_00b66gy" targetRef="Activity_1jtcvfx" />
|
||||
<bpmn:sequenceFlow id="Flow_0c20bae" sourceRef="Activity_1jtcvfx" targetRef="Call_Waku_Messages_Message-Notify_Proejct_Lead" />
|
||||
<bpmn:sequenceFlow id="Flow_1jor3kc" sourceRef="Activity_00b66gy" targetRef="Call_Waku_Messages_Message-Notify_Proejct_Lead" />
|
||||
</bpmn:subProcess>
|
||||
<bpmn:scriptTask id="Activity_0faln91" name="Set Message" scriptFormat="python">
|
||||
<bpmn:incoming>Flow_1qf14hx</bpmn:incoming>
|
||||
|
@ -1574,10 +1597,6 @@ invoice["invoiceCurrency"] = "AUD"</bpmn:script>
|
|||
<bpmndi:BPMNShape id="Activity_0mxxp3b_di" bpmnElement="Call_Waku_Messages_Message-Notify_Proejct_Lead">
|
||||
<dc:Bounds x="510" y="380" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_02v8rpk_di" bpmnElement="Activity_1jtcvfx">
|
||||
<dc:Bounds x="330" y="380" width="100" height="80" />
|
||||
<bpmndi:BPMNLabel />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_0iy0fil_di" bpmnElement="Activity_1982sk7">
|
||||
<dc:Bounds x="-170" y="380" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
|
@ -1588,6 +1607,10 @@ invoice["invoiceCurrency"] = "AUD"</bpmn:script>
|
|||
<bpmndi:BPMNShape id="Activity_1lm44ee_di" bpmnElement="Activity_1r3o0bm">
|
||||
<dc:Bounds x="0" y="380" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_02v8rpk_di" bpmnElement="Activity_1jtcvfx">
|
||||
<dc:Bounds x="330" y="500" width="100" height="80" />
|
||||
<bpmndi:BPMNLabel />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNEdge id="Flow_0re50gq_di" bpmnElement="Flow_0re50gq">
|
||||
<di:waypoint x="610" y="420" />
|
||||
<di:waypoint x="680" y="420" />
|
||||
|
@ -1608,12 +1631,8 @@ invoice["invoiceCurrency"] = "AUD"</bpmn:script>
|
|||
<di:waypoint x="100" y="420" />
|
||||
<di:waypoint x="160" y="420" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_09jcr0u_di" bpmnElement="Flow_09jcr0u">
|
||||
<bpmndi:BPMNEdge id="Flow_1jor3kc_di" bpmnElement="Flow_1jor3kc">
|
||||
<di:waypoint x="260" y="420" />
|
||||
<di:waypoint x="330" y="420" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_0c20bae_di" bpmnElement="Flow_0c20bae">
|
||||
<di:waypoint x="430" y="420" />
|
||||
<di:waypoint x="510" y="420" />
|
||||
</bpmndi:BPMNEdge>
|
||||
</bpmndi:BPMNPlane>
|
||||
|
|
|
@ -0,0 +1,77 @@
|
|||
<?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_SimpleScript" name="Simple Script" isExecutable="true">
|
||||
<bpmn:startEvent id="StartEvent_1">
|
||||
<bpmn:outgoing>Flow_0kdd8x0</bpmn:outgoing>
|
||||
</bpmn:startEvent>
|
||||
<bpmn:sequenceFlow id="Flow_0kdd8x0" sourceRef="StartEvent_1" targetRef="Activity_0fei9ju" />
|
||||
<bpmn:sequenceFlow id="Flow_1xp2da5" sourceRef="Activity_0fei9ju" targetRef="Activity_13w9tgj" />
|
||||
<bpmn:sequenceFlow id="Flow_1wa446t" sourceRef="Activity_13w9tgj" targetRef="Activity_0i8axai" />
|
||||
<bpmn:endEvent id="Event_0ng3s7z">
|
||||
<bpmn:incoming>Flow_09k4m7l</bpmn:incoming>
|
||||
</bpmn:endEvent>
|
||||
<bpmn:sequenceFlow id="Flow_09k4m7l" sourceRef="Activity_0i8axai" targetRef="Event_0ng3s7z" />
|
||||
<bpmn:scriptTask id="Activity_0fei9ju" name="Set Initial Data">
|
||||
<bpmn:incoming>Flow_0kdd8x0</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_1xp2da5</bpmn:outgoing>
|
||||
<bpmn:script>a = 1
|
||||
b = 2</bpmn:script>
|
||||
</bpmn:scriptTask>
|
||||
<bpmn:scriptTask id="Activity_13w9tgj" name="Calculate New Data">
|
||||
<bpmn:incoming>Flow_1xp2da5</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_1wa446t</bpmn:outgoing>
|
||||
<bpmn:script>c = a + b</bpmn:script>
|
||||
</bpmn:scriptTask>
|
||||
<bpmn:manualTask id="Activity_0i8axai" name="Display All Data">
|
||||
<bpmn:extensionElements>
|
||||
<spiffworkflow:instructionsForEndUser>## Data
|
||||
### A
|
||||
{{ a }}
|
||||
## B
|
||||
{{ b }}
|
||||
## C
|
||||
{{ c }}</spiffworkflow:instructionsForEndUser>
|
||||
</bpmn:extensionElements>
|
||||
<bpmn:incoming>Flow_1wa446t</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_09k4m7l</bpmn:outgoing>
|
||||
</bpmn:manualTask>
|
||||
</bpmn:process>
|
||||
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
||||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Proccess_SimpleScript">
|
||||
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
||||
<dc:Bounds x="179" y="159" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Event_0ng3s7z_di" bpmnElement="Event_0ng3s7z">
|
||||
<dc:Bounds x="752" y="159" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_11ukc6l_di" bpmnElement="Activity_0fei9ju">
|
||||
<dc:Bounds x="270" y="137" width="100" height="80" />
|
||||
<bpmndi:BPMNLabel />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_1qefush_di" bpmnElement="Activity_13w9tgj">
|
||||
<dc:Bounds x="430" y="137" width="100" height="80" />
|
||||
<bpmndi:BPMNLabel />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_0dpqey6_di" bpmnElement="Activity_0i8axai">
|
||||
<dc:Bounds x="590" y="137" width="100" height="80" />
|
||||
<bpmndi:BPMNLabel />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNEdge id="Flow_0kdd8x0_di" bpmnElement="Flow_0kdd8x0">
|
||||
<di:waypoint x="215" y="177" />
|
||||
<di:waypoint x="270" y="177" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_1xp2da5_di" bpmnElement="Flow_1xp2da5">
|
||||
<di:waypoint x="370" y="177" />
|
||||
<di:waypoint x="430" y="177" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_1wa446t_di" bpmnElement="Flow_1wa446t">
|
||||
<di:waypoint x="530" y="177" />
|
||||
<di:waypoint x="590" y="177" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_09k4m7l_di" bpmnElement="Flow_09k4m7l">
|
||||
<di:waypoint x="690" y="177" />
|
||||
<di:waypoint x="752" y="177" />
|
||||
</bpmndi:BPMNEdge>
|
||||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
</bpmn:definitions>
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"description": "Simple Script",
|
||||
"display_name": "Simple Script",
|
||||
"display_order": 2,
|
||||
"exception_notification_addresses": [],
|
||||
"fault_or_suspend_on_exception": "fault",
|
||||
"files": [],
|
||||
"id": "simple-script",
|
||||
"is_review": false,
|
||||
"primary_file_name": "simple_script.bpmn",
|
||||
"primary_process_id": "Proccess_SimpleScript",
|
||||
"process_group_id": "mike"
|
||||
}
|
Loading…
Reference in New Issue