User: hurairaidrees@gmail.com clicked save for playground/nutech/issue2/issue2.bpmn

This commit is contained in:
sartography-automated-committer 2024-03-04 04:47:16 +00:00
parent affdf151cb
commit 5abdb2e857

View File

@ -407,17 +407,17 @@ minutes = 0
seconds = 0
days = 0
# Extract the value after "PT"
time_value_str = timer_value_warehouse.split('PT')[1]
# Extract the numeric part of the time value
numeric_part = ""
for char in time_value_str:
for char in timer_value_warehouse:
if char.isdigit():
numeric_part += char
else:
break
# Add 'PT' to the numeric value
numeric_part_with_PT = 'PT' + numeric_part
# Populate values based on the selected time format
if time_format == "Hour(s)":
hours = int(numeric_part) if numeric_part.isdigit() else 0
@ -430,16 +430,17 @@ elif time_format == "Day(s)":
# Create ISO 8601 string representation based on the selected time format
if time_format == "Hour(s)":
timer_value_warehouse = f"PT{hours}H"
timer_value_warehouse = f"{numeric_part_with_PT}H"
elif time_format == "Minute(s)":
timer_value_warehouse = f"PT{minutes}M"
timer_value_warehouse = f"{numeric_part_with_PT}M"
elif time_format == "Second(s)":
timer_value_warehouse = f"PT{seconds}S"
timer_value_warehouse = f"{numeric_part_with_PT}S"
elif time_format == "Day(s)":
timer_value_warehouse = f"P{days}D"
timer_value_warehouse = f"{numeric_part_with_PT}D"
# Now timer_value_tfc_str contains the ISO 8601 string representation based on the selected time format
print(timer_value_warehouse)</bpmn:script>
print(timer_value_warehouse)
</bpmn:script>
</bpmn:scriptTask>
<bpmn:scriptTask id="Activity_0eqer8e" name="Script to convert timer value to string to display">
<bpmn:incoming>Flow_1i02a0w</bpmn:incoming>
@ -578,20 +579,20 @@ A **time duration** defined as ISO 8601 durations format.
<bpmndi:BPMNShape id="Participant_1tquaok_di" bpmnElement="Participant_1tquaok" isHorizontal="true">
<dc:Bounds x="287" y="-110" width="2255" height="1220" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_1eeohaa_di" bpmnElement="Lane_1eeohaa" isHorizontal="true">
<dc:Bounds x="317" y="790" width="2225" height="320" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_1alvrf4_di" bpmnElement="Lane_1alvrf4" isHorizontal="true">
<dc:Bounds x="317" y="530" width="2225" height="260" />
<bpmndi:BPMNShape id="Lane_0csle9a_di" bpmnElement="Lane_0csle9a" isHorizontal="true">
<dc:Bounds x="317" y="410" width="2225" height="120" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_19e0xal_di" bpmnElement="Lane_19e0xal" isHorizontal="true">
<dc:Bounds x="317" y="-110" width="2225" height="520" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_0csle9a_di" bpmnElement="Lane_0csle9a" isHorizontal="true">
<dc:Bounds x="317" y="410" width="2225" height="120" />
<bpmndi:BPMNShape id="Lane_1alvrf4_di" bpmnElement="Lane_1alvrf4" isHorizontal="true">
<dc:Bounds x="317" y="530" width="2225" height="260" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_1eeohaa_di" bpmnElement="Lane_1eeohaa" isHorizontal="true">
<dc:Bounds x="317" y="790" width="2225" height="320" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1rmlg1p_di" bpmnElement="Activity_0qpzdpu">
@ -719,12 +720,12 @@ A **time duration** defined as ISO 8601 durations format.
<dc:Bounds x="1352" y="560" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0f3f7ku_di" bpmnElement="Event_0rscyci">
<dc:Bounds x="404" y="872" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1cn6qdf_di" bpmnElement="Event_0tklkx0">
<dc:Bounds x="1484" y="162" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0f3f7ku_di" bpmnElement="Event_0rscyci">
<dc:Bounds x="404" y="872" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1ndqjvb_di" bpmnElement="Flow_1ndqjvb">
<di:waypoint x="737" y="90" />
<di:waypoint x="757" y="90" />