Batch with more than one 'group by' condition???

Batch with more than one 'group by' condition???

ruben_m4
Not applicable
17 Views
4 Replies
Message 1 of 5

Batch with more than one 'group by' condition???

ruben_m4
Not applicable

[ FlexSim 19.2.4 ]

Hi everybody,

Is it possible to us 'Batch' with more than one 'group by' condition?

In particular, I would like to group tokens by its delivery date and its destination.

I look forward to hearing from you. Thank you very much!

0 Likes
Accepted solutions (1)
18 Views
4 Replies
Replies (4)
Message 2 of 5

roi_sn
Not applicable
Accepted solution

Hi @Ruben M4, I recommend you to create a unique string combining these two labels:

string deliveryDate = token.deliveryDate; // if this label is not a string, convert it
string destination = token.destination; // if this label is not a string, convert it
string newLabel = deliveryDate+"_"+destination;

Then, you can group by these newLabel in the Batch activity.

0 Likes
Message 3 of 5

ruben_m4
Not applicable
Ok, thank you so much!
0 Likes
Message 4 of 5

ruben_m4
Not applicable

hello again

how can I keep in the new batched token the data related to each previous token?

0 Likes
Message 5 of 5

roi_sn
Not applicable

Hi @Ruben M4, you should this question in a separate post in order to let other users to notice abot all questions. In order to ask your question, as it is too general, I recommend you to take a look at the FlexSim User Manual at the Assigning Labels to Outgoing Batches section in:

https://docs.flexsim.com/en/21.1/Reference/ProcessFlowObjects/Basic/Batch/Batch.html#overflow

0 Likes