mirror of
https://github.com/sartography/demo-process-models.git
synced 2025-02-24 13:38:08 +00:00
User: hurairaidrees@gmail.com clicked save for playground/nutech/receipt/receipt.bpmn
This commit is contained in:
parent
249f93ac84
commit
02f60c9f07
@ -143,7 +143,11 @@ A **time duration** defined as ISO 8601 durations format.
|
||||
<bpmn:scriptTask id="Activity_0x2ofau" name="Script to display timer value">
|
||||
<bpmn:incoming>Flow_1c2eg26</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_1fo1w71</bpmn:outgoing>
|
||||
<bpmn:script>hours = 0
|
||||
<bpmn:script># Assuming timer_value_tfc contains the time duration in ISO 8601 format
|
||||
# Example: "PT2H30M15S" for 2 hours, 30 minutes, and 15 seconds
|
||||
|
||||
# Initialize variables
|
||||
hours = 0
|
||||
minutes = 0
|
||||
seconds = 0
|
||||
days = 0
|
||||
@ -161,6 +165,8 @@ elif time_format == "Second(s)":
|
||||
elif time_format == "Day(s)":
|
||||
days = int(time_value_str[:-1]) if time_value_str[:-1].isdigit() else 0
|
||||
|
||||
# Store the end result in variable timer_value_tfc
|
||||
timer_value_tfc = (days, hours, minutes, seconds)
|
||||
</bpmn:script>
|
||||
</bpmn:scriptTask>
|
||||
<bpmn:userTask id="Activity_0ejewop" name="Receive Equipment at SASD Gate area">
|
||||
|
Loading…
x
Reference in New Issue
Block a user