run subflow to push a value into a list does not end

run subflow to push a value into a list does not end

marc_r5
Not applicable
86 Views
1 Reply
Message 1 of 2

run subflow to push a value into a list does not end

marc_r5
Not applicable

[ FlexSim 22.1.2 ]

Hello,

I have a subflow that ends up pushing a value into a list. As the push function keeps the token active until it is pulled from the list, this subflow does not end. That causes my main flow to not move forward with other tasks.

How can I solve this?


Thanks!

0 Likes
Accepted solutions (1)
87 Views
1 Reply
Reply (1)
Message 2 of 2

moehlmann_fe
Enthusiast
Enthusiast
Accepted solution

Set the 'Push to List' activity to have a maximum wait time of 0s, but to keep the value on the list when the token is released by the wait timer firing. This way, the token can continue immediately.

1653474269317.png

Or you use a code snippet in a custom code activity to push the value to the list.

List(listName).push(valueToPush);
0 Likes