Stop all tokens inside activity

Stop all tokens inside activity

marianuskick
Participant Participant
288 Views
1 Reply
Message 1 of 2

Stop all tokens inside activity

marianuskick
Participant
Participant

[ 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)
289 Views
1 Reply
Reply (1)
Message 2 of 2

FelixMoehlmann
Collaborator
Collaborator
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").