question

Ben Wychocki avatar image
0 Likes"
Ben Wychocki asked Felix Möhlmann answered

Run sibling tokens through same process flow

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?

FlexSim 25.0.2
process flowsibling 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
0 Likes"
Felix Möhlmann answered

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.

5 |100000

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