question

jacopo-r avatar image
0 Likes"
jacopo-r asked jacopo-r commented

Batch and unbatch to same tokens

Hi,


I have a process for which I have 3 tokens representing 3 different orders that have to be grouped for the execution process step. Then I need to go back to my initial 3 tokens without losing all their individual information. Is there a way to do this?

Thanks

FlexSim 24.0.1
batchingunbatching
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

·
Paula LG avatar image
1 Like"
Paula LG answered jacopo-r commented

Hi Jacopo,

If you set "Batch Quantity" and "# Tokens to Release" to the same number (3 in this particular case), all the tokens keep their labels and move to the next activity at the same time. Is that something that would work for you?

· 5
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

@jacopo_r, there is a picklist option called "Number of Tokens Batched". You find it in a menu under small black down arrow on the right of the field.

0 Likes 0 ·
jacopo-r avatar image jacopo-r commented ·

@Paula LG , @Joerg Vogel

I mean something like this, where I first batch, do something and then unbatch to the original tokens. Is it possible?
1706857247365.png

0 Likes 0 ·
1706857247365.png (18.1 KiB)
Paula LG avatar image Paula LG jacopo-r commented ·

What we are suggesting is something like this:

1706859203740.png1706859249224.png

The tokens will wait in the Batch activity until there's three of them and then will continue following the blocks as if they were one, sincronized by the batch activity and keeping their individual information. Could this be a solution for you?

0 Likes 0 ·
1706859203740.png (24.0 KiB)
1706859249224.png (24.4 KiB)
Felix Möhlmann avatar image Felix Möhlmann jacopo-r commented ·

If I understand you correctly, then only a single token should run through the intermediate steps, correct?

In theory you could store the information of all other tokens somewhere and recreate them after. But a simpler solution would be to let all tokens of the batch continue as Paula already suggested and use a Decide activity to divert all but one token directly to the second Batch activity.

To do this, you can assign the tokens an index in the Label Aggregation section of the Batch activity.

1706860644926.png

batched-tokens-single-process-fm.fsm

0 Likes 0 ·
jacopo-r avatar image jacopo-r Felix Möhlmann commented ·
@Paula LG and @Felix Möhlmann thanks.

Your suggestions are helping finding the best way to do what I need to do.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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