question

Patrick C4 avatar image
0 Likes"
Patrick C4 asked Patrick C4 commented

What is the syntax to release an array of pulled tokens at once

I have work order tokens that pull part tokens from a list and store them as token.pulled. I also use lists for synchronizing batch type activities. Rather than pushing back to the list I release the part tokens to another activity. Is there a syntax to release the entire array at once? I've been doing it with a repeated loop until all pulled parts have been released but would like something more efficient. Being an SME who learned Flexsim I don't know all the SQL and Flexscript code.

FlexSim 21.1.0
flexsim 21.1.0using listsarray syntaxrelease tokens
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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Patrick C4 commented

You can just refer to token.pulled in the activity "Release Token".

Example attached.ReleaseMultipleTokens.fsm


· 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.

Patrick C4 avatar image Patrick C4 commented ·

Thanks. Staring me in the face.

0 Likes 0 ·