Stop all tokens inside activity

Stop all tokens inside activity

marianuskick
Observer Observer
9 Views
1 Reply
Message 1 of 2

Stop all tokens inside activity

marianuskick
Observer
Observer

[ FlexSim 23.2.3 ]

I'm trying to use a 'Custom Code' activity with 'Stop Token' to stop all tokens inside another 'Delay' activity.

Using the eye dropper I selected: gettoken(current, getactivity(processFlow, "Delay"), 1)

Apparently, this only stops the first token inside the activity. Is there a way to control all tokens inside that activity?

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

moehlmann_fe
Observer
Observer
Accepted solution

That "1" as the third parameter in gettoken() denotes the index of the token that you get a reference to.

You can use gettokens() to get an array of all tokens in the activity (same parameters, just without the "1").