question

Gavin Douglas avatar image
1 Like"
Gavin Douglas asked Gavin Douglas commented

Using multiple groups when batching

Right now i'm batching tokens and grouping them by a label value. So using the batch activity in process flow I have specified a label value ("token.lot") in the group by parameter space. I want to group them by another label value as well. Is it possible?

FlexSim 18.1.1
batching grouping
· 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.

tannerp avatar image tannerp commented ·

Do you want to have groups within groups? Like a sub-group or partition?

0 Likes 0 ·

1 Answer

samuel.p avatar image
1 Like"
samuel.p answered Gavin Douglas commented

Hey Gavin,

You could combine both labels into a new label before the batch activity - use this new label as the group by - and then deleting the new label after the batch.

For example if you wanted to group by these two labels:

Label Name Value
type 1
lot 57

You could convert the label values into the string "type1lot57" and assign it to a new label (named "typelot") using:

token.typelot = "type" + string.fromNum(token.type) + "lot" + string.fromNum(token.lot);

Hope this helps!

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

Gavin Douglas avatar image Gavin Douglas commented ·

Yep, this works. :) Can't avoid you solving my problems. :) ..

0 Likes 0 ·