Change value of Label that was created at Flowitem Bin

Change value of Label that was created at Flowitem Bin

ABajpaiWMKNX
Enthusiast Enthusiast
45 Views
2 Replies
Message 1 of 3

Change value of Label that was created at Flowitem Bin

ABajpaiWMKNX
Enthusiast
Enthusiast

[ FlexSim 23.1.2 ]

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


0 Likes
Accepted solutions (1)
46 Views
2 Replies
Replies (2)
Message 2 of 3

carter-walch
Not applicable
Accepted solution

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!


Message 3 of 3

julie_weller
Not applicable

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.