mirror of
https://github.com/sartography/demo-process-models.git
synced 2025-02-23 18:58:14 +00:00
User: hurairaidrees@gmail.com clicked save for playground/nutech/receipt/receipt.bpmn
This commit is contained in:
parent
19d459d950
commit
99b18d30b0
@ -16,7 +16,7 @@
|
||||
<bpmn:flowNodeRef>Event_1v4k3r9</bpmn:flowNodeRef>
|
||||
<bpmn:flowNodeRef>Activity_136xnz4</bpmn:flowNodeRef>
|
||||
</bpmn:lane>
|
||||
<bpmn:lane id="Lane_01s4kt0" name="Issue Approvers">
|
||||
<bpmn:lane id="Lane_01s4kt0" name="Approvers">
|
||||
<bpmn:flowNodeRef>Activity_1wcbodo</bpmn:flowNodeRef>
|
||||
<bpmn:flowNodeRef>Gateway_0ez3am0</bpmn:flowNodeRef>
|
||||
</bpmn:lane>
|
||||
@ -125,18 +125,41 @@ A **time duration** defined as ISO 8601 durations format.
|
||||
<bpmn:script>hours = 0
|
||||
minutes = 0
|
||||
seconds = 0
|
||||
days = 0
|
||||
|
||||
if 'H' in timer_value_1:
|
||||
hours_str = timer_value_1.split('H')[0][2:]
|
||||
hours = int(hours_str) if hours_str.isdigit() else 0
|
||||
# Extract the value after "PT"
|
||||
time_value_str = timer_value_1.split('PT')[1]
|
||||
|
||||
if 'M' in timer_value_1:
|
||||
minutes_str = timer_value_1.split('M')[0][-2:]
|
||||
minutes = int(minutes_str) if minutes_str.isdigit() else 0
|
||||
# Extract the numeric part of the time value
|
||||
numeric_part = ""
|
||||
for char in time_value_str:
|
||||
if char.isdigit():
|
||||
numeric_part += char
|
||||
else:
|
||||
break
|
||||
|
||||
if 'S' in timer_value_1:
|
||||
seconds_str = timer_value_1.split('S')[0][-2:]
|
||||
seconds = int(seconds_str) if seconds_str.isdigit() else 0</bpmn:script>
|
||||
# Populate values based on the selected time format
|
||||
if time_format == "Hour(s)":
|
||||
hours = int(numeric_part) if numeric_part.isdigit() else 0
|
||||
elif time_format == "Minute(s)":
|
||||
minutes = int(numeric_part) if numeric_part.isdigit() else 0
|
||||
elif time_format == "Second(s)":
|
||||
seconds = int(numeric_part) if numeric_part.isdigit() else 0
|
||||
elif time_format == "Day(s)":
|
||||
days = int(numeric_part) if numeric_part.isdigit() else 0
|
||||
|
||||
# Create ISO 8601 string representation based on the selected time format
|
||||
if time_format == "Hour(s)":
|
||||
timer_value_1 = f"PT{hours}H"
|
||||
elif time_format == "Minute(s)":
|
||||
timer_value_1 = f"PT{minutes}M"
|
||||
elif time_format == "Second(s)":
|
||||
timer_value_1 = f"PT{seconds}S"
|
||||
elif time_format == "Day(s)":
|
||||
timer_value_1 = f"P{days}D"
|
||||
|
||||
# Now timer_value_tfc_str contains the ISO 8601 string representation based on the selected time format
|
||||
print(timer_value_1)</bpmn:script>
|
||||
</bpmn:scriptTask>
|
||||
<bpmn:exclusiveGateway id="Gateway_1be7bb7">
|
||||
<bpmn:incoming>Flow_0hcdtwt</bpmn:incoming>
|
||||
@ -436,12 +459,12 @@ Equipment has succesfully arrived at warehouse</spiffworkflow:instructionsForEnd
|
||||
<bpmndi:BPMNShape id="Activity_1mamrmc_di" bpmnElement="Activity_0azoas6">
|
||||
<dc:Bounds x="1790" y="985" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Event_119urh3_di" bpmnElement="Event_1whqnwg">
|
||||
<dc:Bounds x="1432" y="1137" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Event_1k34eyw_di" bpmnElement="Event_1ny63g6">
|
||||
<dc:Bounds x="1412" y="722" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Event_119urh3_di" bpmnElement="Event_1whqnwg">
|
||||
<dc:Bounds x="1432" y="1137" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNEdge id="Flow_047ap3u_di" bpmnElement="Flow_047ap3u">
|
||||
<di:waypoint x="960" y="382" />
|
||||
<di:waypoint x="960" y="320" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user