Run sibling tokens through same process flow

Run sibling tokens through same process flow

ben_wychocki
Participant Participant
248 Views
1 Reply
Message 1 of 2

Run sibling tokens through same process flow

ben_wychocki
Participant
Participant

[ FlexSim 25.0.2 ]

I have a system where I want a token to split into a number of sibling tokens. Each token goes through a different Set Labels activity, then they are all run through the same process flow. Multiple original tokens would be in this process flow at the same time. What is the best way to have the siblings be rejoined at the end? The regular Join activity requires multiple inputs, and I can't find a good way to send siblings from the same parent token down different paths to the join activity.

Ideally I would just have a single path into a Join function and the sibling tokens would wait until all siblings from one parent are present, then the parent leaves. What is the best way to replicate this behavior?

0 Likes
249 Views
1 Reply
Reply (1)
Message 2 of 2

FelixMoehlmann
Collaborator
Collaborator

It sounds more like you are creating child tokens, but that doesn't really matter. (Sibling Tokens are defined by having the same parent. Creating a sibling from a token with no parent is not possible, the resulting token would be independent).

You could use a Batch activity and group the tokens by the splitID (if you used a Split activity to create the tokens). There isn't a way of making sure that only the parent gets released though. So I would simply release all tokens and sort out the child tokens by sending them to a sink in Decide activity afterwards.

0 Likes