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-16 15:09:15 +00:00
parent d2559a7e01
commit 2a2df56995

View File

@ -545,19 +545,7 @@ __________________________________________________________________________
</bpmn:intermediateCatchEvent>
<bpmn:subProcess id="Activity_0rae8g6" name="Waku Message: Invoice Rejected">
<bpmn:extensionElements>
<spiffworkflow:preScript># Check if there are Project Lead and/or Finance comments
is isMatch:
len_finance_comments = len(invoice["commentsFinance"].strip())
len_project_lead_comments = 0
else:
len_finance_comments = len(invoice["commentsFinance"].strip())
len_project_lead_comments = len(invoice["commentsProjectLead"].strip())
# Set which message
if isApprovalTimer:
task_id = "waku_no_team_lead_response"
else:
task_id = "waku_invoice_rejected"</spiffworkflow:preScript>
<spiffworkflow:preScript></spiffworkflow:preScript>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0bfs2xe</bpmn:incoming>
<bpmn:outgoing>Flow_0c0c9mw</bpmn:outgoing>
@ -569,7 +557,21 @@ else:
</bpmn:startEvent>
<bpmn:callActivity id="Activity_0eh4so1" name="Call Waku Messages: Message" calledElement="Waku_Messages_Message">
<bpmn:extensionElements>
<spiffworkflow:preScript># Set Message should not be set
<spiffworkflow:preScript># Check if there are Project Lead and/or Finance comments
is isMatch:
len_finance_comments = len(invoice["commentsFinance"].strip())
len_project_lead_comments = 0
else:
len_finance_comments = len(invoice["commentsFinance"].strip())
len_project_lead_comments = len(invoice["commentsProjectLead"].strip())
# Set which message
if isApprovalTimer:
task_id = "waku_no_team_lead_response"
else:
task_id = "waku_invoice_rejected"
# Set Message should not be set
isSetMessage = True
# Set Time Zone