Using multiple groups when batching

Using multiple groups when batching

gavin_douglas
Not applicable
178 Views
3 Replies
Message 1 of 4

Using multiple groups when batching

gavin_douglas
Not applicable

[ FlexSim 18.1.1 ]

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?

Accepted solutions (1)
179 Views
3 Replies
Replies (3)
Message 2 of 4

tanner_p
Not applicable

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

0 Likes
Message 3 of 4

samuel_porter
Not applicable
Accepted solution

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 NameValue
type1
lot57

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!

Message 4 of 4

gavin_douglas
Not applicable

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

0 Likes