question

Marc R5 avatar image
0 Likes"
Marc R5 asked Felix Möhlmann answered

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

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!

FlexSim 22.1.2
subflowpush to list
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

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);

1653474269317.png (24.1 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.