question

Manus K avatar image
0 Likes"
Manus K asked Felix Möhlmann answered

Stop all tokens inside activity

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?

FlexSim 23.2.3
processflowcustomcodestop token
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
1 Like"
Felix Möhlmann answered

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

5 |100000

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