question

Abhay Bajpai avatar image
0 Likes"
Abhay Bajpai asked Julie Weller commented

Change value of Label that was created at Flowitem Bin

How do i change value of the label "modelID" that was assigned to the flow item in flow bin? I want to change it in the "Assign Label" or really anywhere in the "Floor Arrival" process in Process flow.


1686780181316.png


FlexSim 23.1.2
label value
1686780181316.png (176.2 KiB)
· 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.

Julie Weller avatar image Julie Weller commented ·

Hi @Abhay Bajpai, was Carter Walch's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

1 Like 1 ·

1 Answer

Carter Walch avatar image
3 Likes"
Carter Walch answered Carter Walch edited

Hi @Abhay Bajpai ,

changeflowitemlabel.fsm

After assigning a label to the flow item in the flow item bin, we can change the label value at any point after it has been created.

For example, in your event-triggered source, make sure that the entering item value is 'item' and the operation is 'assign'. This means that the token will reference the entering flow item and we will refer to it as 'item'.

1686780716906.png

After doing this, you can use your assign labels activity to modify the 'modelID' label value. Make sure that you assign labels to 'token.item' (meaning the item that the token is linked to). Then we can add a value to modelID. Notice the updated modelID on the flow item below:

1686780789012.png

1686780976073.png


Note: If we did not add the label already in the flow item bin, this assign labels activity would add the label AND update the value.

Hope this helps!



1686780716906.png (19.5 KiB)
1686780789012.png (24.7 KiB)
1686780976073.png (120.6 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.