question

G C avatar image
1 Like"
G C asked Matthew Gillespie commented

Create multiple tokens in multiple activities with 1 create activity

I want to be able to create tokens at multiple destinations with 1 create activity. Obviously I can just add more create activities, but this is not ideal for me (it will require a lot of rework because this a sub flow with many dependencies). I will be setting destinations via a token label. On the same note, I want to be able to set to 1 destination if needed.

So if I could get something like the img attachment that actually works, that would be great.

FlexSim 16.1.0
process flowcreate activity
help2.png (40.6 KiB)
· 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.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

For 16.2 we will be adding a new activity (Split) that will make this much easier. The Split activity will split the token into multiple tokens and send one out each outgoing connector.

1 Like 1 ·

1 Answer

Sam Stubbs avatar image
4 Likes"
Sam Stubbs answered Brandon Peterson commented

The best way to accomplish this is to add a Decide activity. Have the Create Tokens activity create them on a Decide activity, and then you can determine the different branches from the decide point based on whatever criteria you need.

· 2
5 |100000

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

Brandon Peterson avatar image Brandon Peterson ♦ commented ·

If you were only creating one child token then you could use the "Activity By Case" pick list option for the destination. As you want to create three tokens with each being in a different activity then you will have to use Sam's approach. In the Create activity you can assign labels to the child tokens. If you use the command "getchildtoken()" with only the reference to the parent token it will return the number of children. In the Create activity this will be the creation rank of the child when used in any of the assign label triggers.

4 Likes 4 ·
Adrian Haws avatar image Adrian Haws commented ·

And of course in the Schedule Source activity you can define the quantity of tokens that are created.

1 Like 1 ·