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

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

Lili
Not applicable
5 Views
7 Replies
Message 1 of 8

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

Lili
Not applicable

[ FlexSim 22.2.0 ]

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

0 Likes
Accepted solutions (1)
6 Views
7 Replies
Replies (7)
Message 2 of 8

arunTTT2P
Explorer
Explorer
Accepted solution

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

Message 3 of 8

Lili
Not applicable

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
Message 4 of 8

moehlmann_fe
Observer
Observer

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

Message 5 of 8

arunTTT2P
Explorer
Explorer
Thanks for uploading the model in 22.2, I have uninstalled the 22.2 version.
0 Likes
Message 6 of 8

Lili
Not applicable

I appreciate your help @Felix Möhlmann thank you

I tried the model without the last assign label activity and the labels change for all the tokens as I wanted. Is there a reason for adding this activity?

0 Likes
Message 7 of 8

moehlmann_fe
Observer
Observer
When the 'main' token releases the resources those labels are lost. So Arun makes copies of those labels to retain the value, then reassigns them to the previous names (Sep -> sep, Resource -> resource). The temporary labels are then removed. This is of course only necessary if the exact label name is important.
0 Likes
Message 8 of 8

Lili
Not applicable

I see.

Thanks for your help @Arun Kr @Felix Möhlmann

0 Likes