question

Sahar A avatar image
1 Like"
Sahar A asked Emily Hardy commented

How can I unbatch tokens in a process flow & read array label?

To give some context, I batched some tokens in a previous process flow and I turned some labels to Arrays, then I took this batched token and created a 3D object. I moved the 3D object to my next object. This next object also has a process flow and I want to basically unload or unbatch the token and get the correct labels back that I made into an array. How can I do this?

FlexSim 17.2.5
process flowbatchseperatorlabel array
· 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.

Jeff Nordgren avatar image Jeff Nordgren commented ·
@Sahar A

Can you send in your model or a sample model so that we can see exactly what needs to be done? That would be very helpful.

Thanks.

0 Likes 0 ·

1 Answer

Steven Hamoen avatar image
1 Like"
Steven Hamoen answered Emily Hardy commented

@Sahar A you can use a "run sub flow" activity. For the "Quantity" field you have an option called: "Array Size" to create tokens for each value in the array. To get the particular value from that array on your token, you give it a label and there you use the option Array -> value from label array. You can use the statement "creationRank" to get an index into the rank of the token created in this activity. Don't forget to uncheck label access on parent only so that you can check the "Copy Labels to Children on Create" on and have all info on all tokens. Within the subflow you now have individual tokes that represent the data on the array.

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

Emily Hardy avatar image Emily Hardy ♦ commented ·

@Sahar A, did this answer your question?

0 Likes 0 ·