question

Gesa R avatar image
0 Likes"
Gesa R asked Joshua S answered

Add label to token with Process Flow instance information

Hi,

when I have different instances of a process flow e.g. 3 queues, how can I write a label to a token with the information about the running instance.

I know each token is independant but I need to know because some times I want to shut down a specific instance.

Thank you for helping.

FlexSim 18.0.5
process flowflexscriptlabelsinstanced process flowinstance
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

Joshua S avatar image
1 Like"
Joshua S answered

Using the reference word "current" points to that instance object. Wherever you are assigning that label, use current.desired_information_here for the value. For example, if you want to shut down queue 2, then you can use the value current.as(Object).name, then have something that looks for the name of queue 2 and then acts upon that information.

5 |100000

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