User: alex clicked save for execute-procure-to-pay/cc-invoice-approval-process/cc-invoice-approval-process-v2.bpmn

This commit is contained in:
demo 2022-11-14 22:00:30 +00:00
parent f6e19efc85
commit ec1e5afea1

View File

@ -627,34 +627,7 @@ __________________________________________________________________________
</bpmn:startEvent> </bpmn:startEvent>
<bpmn:callActivity id="Activity_0eh4so1" name="Call Waku Messages: Message" calledElement="Waku_Messages_Message"> <bpmn:callActivity id="Activity_0eh4so1" name="Call Waku Messages: Message" calledElement="Waku_Messages_Message">
<bpmn:extensionElements> <bpmn:extensionElements>
<spiffworkflow:preScript /> <spiffworkflow:preScript># Check if there are Project Lead and/or Finance comments
</bpmn:extensionElements>
<bpmn:incoming>Flow_0umhf4u</bpmn:incoming>
<bpmn:outgoing>Flow_1bnxkd6</bpmn:outgoing>
</bpmn:callActivity>
<bpmn:endEvent id="Event_0ihhn4w">
<bpmn:incoming>Flow_01i59kw</bpmn:incoming>
</bpmn:endEvent>
<bpmn:serviceTask id="waku_invoice_rejected" name="3. Notify CC via Waku &#34;invoice rejected&#34;">
<bpmn:extensionElements>
<spiffworkflow:serviceTaskOperator id="waku/SendMessage" resultVariable="wr_invoiceRejected">
<spiffworkflow:parameters>
<spiffworkflow:parameter id="message" type="str" value="waku_message" />
<spiffworkflow:parameter id="message_type" type="str" value="&#34;wakuext_sendOneToOneMessage&#34;" />
<spiffworkflow:parameter id="recipient" type="str" value="current_user_extras[&#34;status_key&#34;]" />
</spiffworkflow:parameters>
</spiffworkflow:serviceTaskOperator>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1bnxkd6</bpmn:incoming>
<bpmn:outgoing>Flow_01i59kw</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_14x1v12" sourceRef="Event_0ialhor" targetRef="Activity_04kw0jc" />
<bpmn:sequenceFlow id="Flow_01i59kw" sourceRef="waku_invoice_rejected" targetRef="Event_0ihhn4w" />
<bpmn:sequenceFlow id="Flow_0umhf4u" sourceRef="Activity_04kw0jc" targetRef="Activity_0eh4so1" />
<bpmn:scriptTask id="Activity_04kw0jc" name="Set Which Message" scriptFormat="python">
<bpmn:incoming>Flow_14x1v12</bpmn:incoming>
<bpmn:outgoing>Flow_0umhf4u</bpmn:outgoing>
<bpmn:script># Check if there are Project Lead and/or Finance comments
len_project_lead_comments = len(invoice["commentsProjectLead"].strip()) len_project_lead_comments = len(invoice["commentsProjectLead"].strip())
len_finance_comments = len(invoice["commentsFinance"].strip()) len_finance_comments = len(invoice["commentsFinance"].strip())
@ -674,15 +647,29 @@ time_zone = current_user_extras["time_zone"]
time_format = current_user_extras["time_format"] time_format = current_user_extras["time_format"]
# Set Date Format # Set Date Format
time_format = current_user_extras["date_format"]</bpmn:script> time_format = current_user_extras["date_format"]</spiffworkflow:preScript>
</bpmn:scriptTask> </bpmn:extensionElements>
<bpmn:scriptTask id="Activity_03duc95" name="Set Message" scriptFormat="python"> <bpmn:incoming>Flow_14x1v12</bpmn:incoming>
<bpmn:script># Set who rejected <bpmn:outgoing>Flow_1bnxkd6</bpmn:outgoing>
if not(invoice.isProjectLeadApprove): </bpmn:callActivity>
waku_message = waku_message_body + waku_message_timestamp + waku_message_variables + waku_message_footer <bpmn:endEvent id="Event_0ihhn4w">
else: <bpmn:incoming>Flow_01i59kw</bpmn:incoming>
waku_message = waku_message_body + waku_message_timestamp + waku_message_variables + "\nProject Lead Comments: " + invoice.commentsProjectLead + waku_message_footer</bpmn:script> </bpmn:endEvent>
</bpmn:scriptTask> <bpmn:serviceTask id="waku_invoice_rejected" name="3. Notify CC via Waku &#34;invoice rejected&#34;">
<bpmn:extensionElements>
<spiffworkflow:serviceTaskOperator id="waku/SendMessage" resultVariable="wr_invoiceRejected">
<spiffworkflow:parameters>
<spiffworkflow:parameter id="message" type="str" value="waku_message" />
<spiffworkflow:parameter id="message_type" type="str" value="&#34;wakuext_sendOneToOneMessage&#34;" />
<spiffworkflow:parameter id="recipient" type="str" value="current_user_extras[&#34;status_key&#34;]" />
</spiffworkflow:parameters>
</spiffworkflow:serviceTaskOperator>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1bnxkd6</bpmn:incoming>
<bpmn:outgoing>Flow_01i59kw</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_14x1v12" sourceRef="Event_0ialhor" targetRef="Activity_0eh4so1" />
<bpmn:sequenceFlow id="Flow_01i59kw" sourceRef="waku_invoice_rejected" targetRef="Event_0ihhn4w" />
<bpmn:sequenceFlow id="Flow_1bnxkd6" sourceRef="Activity_0eh4so1" targetRef="waku_invoice_rejected" /> <bpmn:sequenceFlow id="Flow_1bnxkd6" sourceRef="Activity_0eh4so1" targetRef="waku_invoice_rejected" />
</bpmn:subProcess> </bpmn:subProcess>
<bpmn:subProcess id="Activity_1ucvkk4" name="Waku Message: Notify Project Lead"> <bpmn:subProcess id="Activity_1ucvkk4" name="Waku Message: Notify Project Lead">
@ -1891,41 +1878,31 @@ isCurTest = False</spiffworkflow:preScript>
</bpmndi:BPMNDiagram> </bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram id="BPMNDiagram_0pf7nxs"> <bpmndi:BPMNDiagram id="BPMNDiagram_0pf7nxs">
<bpmndi:BPMNPlane id="BPMNPlane_0obk4d1" bpmnElement="Activity_0rae8g6"> <bpmndi:BPMNPlane id="BPMNPlane_0obk4d1" bpmnElement="Activity_0rae8g6">
<bpmndi:BPMNShape id="BPMNShape_0md80al" bpmnElement="Event_0ialhor">
<dc:Bounds x="-38" y="202" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0u0hy9z" bpmnElement="Activity_0eh4so1"> <bpmndi:BPMNShape id="BPMNShape_0u0hy9z" bpmnElement="Activity_0eh4so1">
<dc:Bounds x="250" y="180" width="100" height="80" /> <dc:Bounds x="250" y="180" width="100" height="80" />
<bpmndi:BPMNLabel /> <bpmndi:BPMNLabel />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_06ie9hh" bpmnElement="Event_0ihhn4w"> <bpmndi:BPMNShape id="BPMNShape_0md80al" bpmnElement="Event_0ialhor">
<dc:Bounds x="762" y="202" width="36" height="36" /> <dc:Bounds x="132" y="202" width="36" height="36" />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1lk7fz8" bpmnElement="waku_invoice_rejected"> <bpmndi:BPMNShape id="BPMNShape_1lk7fz8" bpmnElement="waku_invoice_rejected">
<dc:Bounds x="600" y="180" width="100" height="80" /> <dc:Bounds x="430" y="180" width="100" height="80" />
<bpmndi:BPMNLabel /> <bpmndi:BPMNLabel />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0py9spx_di" bpmnElement="Activity_04kw0jc"> <bpmndi:BPMNShape id="BPMNShape_06ie9hh" bpmnElement="Event_0ihhn4w">
<dc:Bounds x="70" y="180" width="100" height="80" /> <dc:Bounds x="602" y="202" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_08c60j8_di" bpmnElement="Activity_03duc95">
<dc:Bounds x="430" y="350" width="100" height="80" />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_04mzj46" bpmnElement="Flow_14x1v12"> <bpmndi:BPMNEdge id="BPMNEdge_04mzj46" bpmnElement="Flow_14x1v12">
<di:waypoint x="-2" y="220" /> <di:waypoint x="168" y="220" />
<di:waypoint x="70" y="220" /> <di:waypoint x="250" y="220" />
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_16ht4ok" bpmnElement="Flow_01i59kw"> <bpmndi:BPMNEdge id="BPMNEdge_16ht4ok" bpmnElement="Flow_01i59kw">
<di:waypoint x="700" y="220" /> <di:waypoint x="530" y="220" />
<di:waypoint x="762" y="220" /> <di:waypoint x="602" y="220" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0umhf4u_di" bpmnElement="Flow_0umhf4u">
<di:waypoint x="170" y="220" />
<di:waypoint x="250" y="220" />
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1bnxkd6_di" bpmnElement="Flow_1bnxkd6"> <bpmndi:BPMNEdge id="Flow_1bnxkd6_di" bpmnElement="Flow_1bnxkd6">
<di:waypoint x="350" y="220" /> <di:waypoint x="350" y="220" />
<di:waypoint x="600" y="220" /> <di:waypoint x="430" y="220" />
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
</bpmndi:BPMNPlane> </bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram> </bpmndi:BPMNDiagram>