question

Tamilselvan avatar image
0 Likes"
Tamilselvan asked Jason Lightfoot commented

Question about Wait for Event

Is it possible to give the if condition for Wait for event activity, I have a global table it will increment the value, once the value changes to 1 wait for event activity has to release the token to next activity. if its 0 or other integer it has to hold the token

FlexSim 23.1.1
wait for event
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
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

To do this your datatype in the table would need to be tracked variable.

Rather than listen to a central table I'd recommend listening to objects and their events, or coordinating through lists as these are likely to be easier to implement, track and debug.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Tamilselvan avatar image Tamilselvan commented ·
How to do that with the tracked variable
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Tamilselvan commented ·

You change the datatype of the column or cell to tracked variable. Then you need to set the value using Table.cell().value=

I don't see the benefit over the other synchronisation methods - an object approach I find is always better than centralised systems.

WaitForTableCellValueChange.fsm

0 Likes 0 ·