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:

  1. string deliveryDate = token.deliveryDate; // if this label is not a string, convert it
  2. string destination = token.destination; // if this label is not a string, convert it
  3. 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
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.