question

Ruben M4 avatar image
0 Likes"
Ruben M4 asked Roi Sánchez commented

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

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!

FlexSim 19.2.4
batchorder batching
5 |100000

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

Roi Sánchez avatar image
0 Likes"
Roi Sánchez answered Ruben M4 commented

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.

· 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.

Ruben M4 avatar image Ruben M4 commented ·
Ok, thank you so much!
0 Likes 0 ·
Ruben M4 avatar image
0 Likes"
Ruben M4 answered Roi Sánchez commented

hello again

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

· 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.

Roi Sánchez avatar image Roi Sánchez commented ·

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 0 ·