mirror of
https://github.com/sartography/sample-process-models.git
synced 2025-02-23 13:18:21 +00:00
User: ciuser1 clicked save for execute-procure-to-pay/cc-invoice-approval-process/cc-invoice-approval-process-v2.bpmn
This commit is contained in:
parent
21fc08c2c3
commit
f466fea605
@ -164,7 +164,7 @@ del datetime</bpmn:script>
|
||||
</spiffworkflow:unitTests>
|
||||
</bpmn:extensionElements>
|
||||
<bpmn:incoming>Flow_1avkxpe</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_18qyq02</bpmn:outgoing>
|
||||
<bpmn:outgoing>Flow_1dozbya</bpmn:outgoing>
|
||||
<bpmn:script>isNameNum = False
|
||||
for c in invoice.contributorName:
|
||||
if c.isdigit():
|
||||
@ -173,13 +173,8 @@ for c in invoice.contributorName:
|
||||
|
||||
del c</bpmn:script>
|
||||
</bpmn:scriptTask>
|
||||
<bpmn:sequenceFlow id="Flow_18qyq02" sourceRef="Activity_check_contributor_name" targetRef="Activity_check_invoice_amount" />
|
||||
<bpmn:scriptTask id="Activity_check_invoice_amount" name="Check Invoice Amount" scriptFormat="python">
|
||||
<bpmn:incoming>Flow_18qyq02</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_0s1utue</bpmn:outgoing>
|
||||
<bpmn:script>
|
||||
|
||||
# Check if there are more than two decimal places
|
||||
<bpmn:script># Check if there are more than two decimal places
|
||||
invoiceAmount_str = str(invoice.invoiceAmount)
|
||||
d = decimal.Decimal(invoiceAmount_str)
|
||||
d_cnt = d.as_tuple().exponent
|
||||
@ -199,13 +194,14 @@ del decimal</bpmn:script>
|
||||
<bpmn:outgoing>Flow_0tzjowk</bpmn:outgoing>
|
||||
</bpmn:businessRuleTask>
|
||||
<bpmn:callActivity id="Activity_call_local_date_and_time" name="Call Local Date & Time" calledElement="Shared_Local_Date_Time" />
|
||||
<bpmn:sequenceFlow id="Flow_0s1utue" sourceRef="Activity_check_invoice_amount" targetRef="Activity_1px1nvz" />
|
||||
<bpmn:sequenceFlow id="Flow_0jxe6o8" sourceRef="Activity_1px1nvz" targetRef="Activity_check_validation_rules" />
|
||||
<bpmn:scriptTask id="Activity_1px1nvz" name="Removed when datetime is fixed">
|
||||
<bpmn:incoming>Flow_0s1utue</bpmn:incoming>
|
||||
<bpmn:scriptTask id="Activity_1px1nvz" name="Removed when datetime is fixed" scriptFormat="python">
|
||||
<bpmn:incoming>Flow_1dozbya</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_0jxe6o8</bpmn:outgoing>
|
||||
<bpmn:script>isDueDateAfter = True</bpmn:script>
|
||||
<bpmn:script>isDueDateAfter = True
|
||||
decimal_cnt = 2</bpmn:script>
|
||||
</bpmn:scriptTask>
|
||||
<bpmn:sequenceFlow id="Flow_1dozbya" sourceRef="Activity_check_contributor_name" targetRef="Activity_1px1nvz" />
|
||||
</bpmn:subProcess>
|
||||
<bpmn:manualTask id="Activity_show_errors" name="Show Error(s)">
|
||||
<bpmn:extensionElements>
|
||||
@ -1131,9 +1127,6 @@ Please fix.
|
||||
<bpmndi:BPMNShape id="Activity_0ynnab7_di" bpmnElement="Activity_check_contributor_name">
|
||||
<dc:Bounds x="340" y="170" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_07pdvk2_di" bpmnElement="Activity_check_invoice_amount">
|
||||
<dc:Bounds x="520" y="170" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_1l7rl3o_di" bpmnElement="Activity_check_validation_rules">
|
||||
<dc:Bounds x="1020" y="170" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
@ -1144,26 +1137,25 @@ Please fix.
|
||||
<bpmndi:BPMNShape id="Activity_05q4kby_di" bpmnElement="Activity_1px1nvz">
|
||||
<dc:Bounds x="760" y="170" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_07pdvk2_di" bpmnElement="Activity_check_invoice_amount">
|
||||
<dc:Bounds x="510" y="360" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNEdge id="Flow_1avkxpe_di" bpmnElement="Flow_1avkxpe">
|
||||
<di:waypoint x="268" y="210" />
|
||||
<di:waypoint x="340" y="210" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_18qyq02_di" bpmnElement="Flow_18qyq02">
|
||||
<di:waypoint x="440" y="210" />
|
||||
<di:waypoint x="520" y="210" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_0tzjowk_di" bpmnElement="Flow_0tzjowk">
|
||||
<di:waypoint x="1120" y="210" />
|
||||
<di:waypoint x="1182" y="210" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_0s1utue_di" bpmnElement="Flow_0s1utue">
|
||||
<di:waypoint x="620" y="210" />
|
||||
<di:waypoint x="760" y="210" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_0jxe6o8_di" bpmnElement="Flow_0jxe6o8">
|
||||
<di:waypoint x="860" y="210" />
|
||||
<di:waypoint x="1020" y="210" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_1dozbya_di" bpmnElement="Flow_1dozbya">
|
||||
<di:waypoint x="440" y="210" />
|
||||
<di:waypoint x="760" y="210" />
|
||||
</bpmndi:BPMNEdge>
|
||||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
</bpmn:definitions>
|
||||
|
Loading…
x
Reference in New Issue
Block a user