question

lili avatar image
0 Likes"
lili asked lili commented

How to assign labels to "ALL" of the tokens created by a batch in process flow?

I'm using a batch activity in my process flow and I seperate each entering token to 8 tokens. I want these tokens to have the same labels as the entering token, but when I use Label aggregation>Aggregation>First Value, The first token loses some of the tokens and for some reason the labels are only tagged to the other 7 exiting tokens.

How can I make the first exiting token keep its labels as well?

I'll attach a simpler version of my model here.

These are the labels of the first exiting token

capture1.png

and these are the labels of the second exiting token.capture.png

Also I'm not sure how I can release the resources without getting this exception:

Label property sep retrieved on token "id:8". Label does not exist. At activity "Release S" in process flow "ProcessFlow".

Thanks in advance

batching test.fsm

FlexSim 22.2.0
process flow batchlabel aggregationbatch labels
capture.png (27.1 KiB)
capture1.png (27.8 KiB)
batching-test.fsm (43.5 KiB)
5 |100000

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

1 Answer

·
Arun Kr avatar image
2 Likes"
Arun Kr answered lili commented

This is due to the two release activities at the end of the process flow. You can change the name of the "sep" and "resource" labels in the batch activity to some other names and then reproduce them using the assign label activity.

1685518558833.png

Another way is to use the Assign Released Resources(s) option in the release activity. No need for changing the label names in the batch activity.

1685524035428.png

1685524210011.png

But the order of the labels in the first token will change still info is preserved.


batching-test.fsm

Regards,

Arun KR


1685518558833.png (73.8 KiB)
1685524035428.png (22.1 KiB)
1685524210011.png (20.5 KiB)
batching-test.fsm (43.3 KiB)
· 6
5 |100000

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

lili avatar image lili commented ·

Thanks for your response @Arun Kr, I can't however open the attached model as I'm currently using an older version. Is there a way you can upload an older version of the model?

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann lili commented ·

Here's a model in 22.2. I also added a version that uses the Create Tokens activity. For a large number of tokens this would be quicker to use since you can tell it to copy all labels with just one click.

batching-test_1.fsm

1 Like 1 ·
batching-test-1.fsm (50.6 KiB)
Arun Kr avatar image Arun Kr Felix Möhlmann commented ·
Thanks for uploading the model in 22.2, I have uninstalled the 22.2 version.
0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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