Pull token from list when a Global Table cell value is true

Pull token from list when a Global Table cell value is true

iceagesimulator
Enthusiast Enthusiast
162 Views
1 Reply
Message 1 of 2

Pull token from list when a Global Table cell value is true

iceagesimulator
Enthusiast
Enthusiast

I am trying to implement a conditional pull from a List, where the condition is based on the cell value at specific places in a global table. I have a Field enabled on a list that sets its value based on the Global Table cell value. But, the issue I am running into is that when the value in the Global Table changes, a token waiting on the "Pull from List" activity does not release its token. Even though I have the "dynamic" box check marked in the Field, it seems to not be setting itself upon the value changing in the global table. Can the List not act as a listener to the Global Table cell value, and release tokens based on the value changing in the global table?ConditionalPullFromListAndListener.png 

0 Likes
Accepted solutions (1)
163 Views
1 Reply
Reply (1)
Message 2 of 2

FelixMoehlmann
Collaborator
Collaborator
Accepted solution

Pulls are evaluated when the token enters the Pull from List activity and when a new value is pushed to the list (and then only against the new value, except if the option "Reevaluate All Values On Push" is checked). You can manually trigger an evaluation with "List().reevaluateBackOrders()". You will need to do that whenever you change a value in the table.

https://docs.flexsim.com/en/25.1/Reference/CodingInFlexSim/FlexScriptAPIReference/List/List.html