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
6133d711cf
commit
7d7afe2f73
|
@ -757,7 +757,60 @@ else:
|
|||
</bpmn:subProcess>
|
||||
<bpmn:dataObjectReference id="DataObjectReference_12rfrua" name="wr" dataObjectRef="wr" />
|
||||
<bpmn:dataObject id="wr" />
|
||||
<bpmn:subProcess id="Activity_1kgaqpf" name="Waku Message: Notify Finance" />
|
||||
<bpmn:subProcess id="Activity_1kgaqpf" name="Waku Message: Notify Finance">
|
||||
<bpmn:startEvent id="Event_0k7eiau">
|
||||
<bpmn:outgoing>Flow_0xh27vy</bpmn:outgoing>
|
||||
</bpmn:startEvent>
|
||||
<bpmn:callActivity id="Activity_1wqf9dm" name="Call Waku Messages: Message" calledElement="Waku_Messages_Message">
|
||||
<bpmn:extensionElements>
|
||||
<spiffworkflow:preScript>task_id = "waku_invoice_submitted"</spiffworkflow:preScript>
|
||||
</bpmn:extensionElements>
|
||||
<bpmn:incoming>Flow_0tbbryo</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_0n3djvs</bpmn:outgoing>
|
||||
</bpmn:callActivity>
|
||||
<bpmn:endEvent id="Event_0czwuqb">
|
||||
<bpmn:incoming>Flow_0lr2fpj</bpmn:incoming>
|
||||
</bpmn:endEvent>
|
||||
<bpmn:serviceTask id="Activity_0ez288q" name="3. Notify CC via Waku "invoice rejected"">
|
||||
<bpmn:extensionElements>
|
||||
<spiffworkflow:serviceTaskOperator id="waku/SendMessage" resultVariable="wr_invoice_rejected">
|
||||
<spiffworkflow:parameters>
|
||||
<spiffworkflow:parameter id="message" type="str" value="waku_message_body + "\n- - - - - - - - - - - - - - - - - - - - - - -" + waku_message_variables" />
|
||||
<spiffworkflow:parameter id="message_type" type="str" value=""wakuext_sendOneToOneMessage"" />
|
||||
<spiffworkflow:parameter id="recipient" type="str" value="current_user_extras["status_key"]" />
|
||||
</spiffworkflow:parameters>
|
||||
</spiffworkflow:serviceTaskOperator>
|
||||
</bpmn:extensionElements>
|
||||
<bpmn:incoming>Flow_1leowju</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_0lr2fpj</bpmn:outgoing>
|
||||
</bpmn:serviceTask>
|
||||
<bpmn:scriptTask id="Activity_01g159b" name="Set Which Message" scriptFormat="python">
|
||||
<bpmn:incoming>Flow_0xh27vy</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_0tbbryo</bpmn:outgoing>
|
||||
<bpmn:script># Set who rejected
|
||||
if not(invoice.isTeamLeadApprove):
|
||||
task_id = "waku_invoice_rejected-Team_Lead"
|
||||
else:
|
||||
task_id = "waku_invoice_rejected-Finance"
|
||||
|
||||
# Set Message should not be set
|
||||
isSetMessage = False</bpmn:script>
|
||||
</bpmn:scriptTask>
|
||||
<bpmn:scriptTask id="Activity_0b17syi" name="Set Message" scriptFormat="python">
|
||||
<bpmn:incoming>Flow_0n3djvs</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_1leowju</bpmn:outgoing>
|
||||
<bpmn:script># Set who rejected
|
||||
if not(invoice.isTeamLeadApprove):
|
||||
waku_message = waku_message_body + "\n- - - - - - - - - - - - - - - - - - - - - - -" + "\nSent: " + local_date_str + " @ " + local_time_str + "\n- - - - - - - - - - - - - - - - - - - - - - -" + waku_message_variables + waku_message_footer
|
||||
else:
|
||||
waku_message = waku_message_body + "\n- - - - - - - - - - - - - - - - - - - - - - -" + "\nSent: " + local_date_str + " @ " + local_time_str + "\n- - - - - - - - - - - - - - - - - - - - - - -" + waku_message_variables * "\nTeam Lead Comments: " + invoice.commentsTeamLead + waku_message_footer</bpmn:script>
|
||||
</bpmn:scriptTask>
|
||||
<bpmn:sequenceFlow id="Flow_0xh27vy" sourceRef="Event_0k7eiau" targetRef="Activity_01g159b" />
|
||||
<bpmn:sequenceFlow id="Flow_0tbbryo" sourceRef="Activity_01g159b" targetRef="Activity_1wqf9dm" />
|
||||
<bpmn:sequenceFlow id="Flow_0n3djvs" sourceRef="Activity_1wqf9dm" targetRef="Activity_0b17syi" />
|
||||
<bpmn:sequenceFlow id="Flow_0lr2fpj" sourceRef="Activity_0ez288q" targetRef="Event_0czwuqb" />
|
||||
<bpmn:sequenceFlow id="Flow_1leowju" sourceRef="Activity_0b17syi" targetRef="Activity_0ez288q" />
|
||||
</bpmn:subProcess>
|
||||
</bpmn:process>
|
||||
<bpmn:process id="Process_cc_invoice_approval_process_v2_c" isExecutable="false" />
|
||||
<bpmn:process id="Process_cc_invoice_approval_process_v2_d" isExecutable="false" />
|
||||
|
@ -1600,6 +1653,47 @@ else:
|
|||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
<bpmndi:BPMNDiagram id="BPMNDiagram_1vlf9fh">
|
||||
<bpmndi:BPMNPlane id="BPMNPlane_0pej8du" bpmnElement="Activity_1kgaqpf" />
|
||||
<bpmndi:BPMNPlane id="BPMNPlane_0pej8du" bpmnElement="Activity_1kgaqpf">
|
||||
<bpmndi:BPMNShape id="BPMNShape_1r0xe85" bpmnElement="Event_0k7eiau">
|
||||
<dc:Bounds x="172" y="222" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="BPMNShape_0brjin6" bpmnElement="Activity_1wqf9dm">
|
||||
<dc:Bounds x="460" y="200" width="100" height="80" />
|
||||
<bpmndi:BPMNLabel />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="BPMNShape_1kkvray" bpmnElement="Event_0czwuqb">
|
||||
<dc:Bounds x="972" y="222" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="BPMNShape_0x5xk93" bpmnElement="Activity_0ez288q">
|
||||
<dc:Bounds x="810" y="200" width="100" height="80" />
|
||||
<bpmndi:BPMNLabel />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="BPMNShape_13jsep6" bpmnElement="Activity_01g159b">
|
||||
<dc:Bounds x="280" y="200" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="BPMNShape_16keava" bpmnElement="Activity_0b17syi">
|
||||
<dc:Bounds x="640" y="200" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNEdge id="BPMNEdge_0pim44o" bpmnElement="Flow_0xh27vy">
|
||||
<di:waypoint x="208" y="240" />
|
||||
<di:waypoint x="280" y="240" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="BPMNEdge_0fqyd9w" bpmnElement="Flow_0tbbryo">
|
||||
<di:waypoint x="380" y="240" />
|
||||
<di:waypoint x="460" y="240" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="BPMNEdge_1d397qp" bpmnElement="Flow_0n3djvs">
|
||||
<di:waypoint x="560" y="240" />
|
||||
<di:waypoint x="640" y="240" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="BPMNEdge_0u6zjo7" bpmnElement="Flow_0lr2fpj">
|
||||
<di:waypoint x="910" y="240" />
|
||||
<di:waypoint x="972" y="240" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="BPMNEdge_00w6xmg" bpmnElement="Flow_1leowju">
|
||||
<di:waypoint x="740" y="240" />
|
||||
<di:waypoint x="810" y="240" />
|
||||
</bpmndi:BPMNEdge>
|
||||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
</bpmn:definitions>
|
||||
|
|
Loading…
Reference in New Issue