question

Jimmy G2 avatar image
0 Likes"
Jimmy G2 asked Jimmy G2 commented

How to transfer labels from pushed token to a pulled token?

I'm trying to get my Type label to transfer from a pushed token to a pulled token, at the end of my model. I've tried the steps in the attached previous question with no luck (https://answers.flexsim.com/questions/39751/transfer-label-value-from-token-pushed-to-a-list-t.html) Just wondering if someone could assist? My main goal is to have items assigned a color by Type after its pulled from the list.

JD Packaging Single Lane 1_2.fsm

FlexSim 22.0.7
listlabel
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Jimmy G2 commented

The tokens that are pulled move to a sink immediately afterwards. So when the puller is trying to read the label the token is already deleted.

You can either use the SELECT statement in the query to assign labels (which must be present on the list as fields) directly to the puller, using the same name.

1669966209104.png

Or you place a 0s delay after the "Push to List" activity to halt the token until its label was copied over.

1669966274144.png


1669966209104.png (3.0 KiB)
1669966274144.png (8.7 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.

Jimmy G2 avatar image Jimmy G2 commented ·
Simple solution, thanks!!
0 Likes 0 ·