Pull from List succeeds but token.Work is not assigned

Pull from List succeeds but token.Work is not assigned

as5818956
Participant Participant
77 Views
1 Reply
Message 1 of 2

Pull from List succeeds but token.Work is not assigned

as5818956
Participant
Participant

Hello,I work in flexsim 24.2,I have an issue with Pull From List
I’ve created a logic in my Process Flow that works as follows:

  1. Try to pull an AGVWork as token.Work.
  2. If successful, proceed with subsequent operations.
  3. If not, return to the original position and try pulling an AGVWork again.

as5818956_0-1757069846225.png

Here’s the strange part:

  • If the token returns to the original position and then pulls the AGVWork, it works fine.
  • If it pulls the AGVWork directly without returning, the pull also succeeds, but later in the flow, token.Work becomes null.

as5818956_1-1757069928372.png

as5818956_2-1757069955242.png

I added some logging to debug the issue.

as5818956_3-1757070674408.png
It looks like the Pull from List succeeded, but the “Assigned To” field wasn’t set correctly.Is there any way to ensure that the pulled object is properly assigned to the token ?

 

Any suggestions or directions are greatly appreciated.

0 Likes
78 Views
1 Reply
Reply (1)
Message 2 of 2

Paula_LG
Enthusiast
Enthusiast

Hi,

The issue you're having is related to the token inside the list being destroyed right after it exits the "Push to AGV Work" activity (when reaching the finish activity). When you try to access its information, it has already been destroyed and therefore you're not able to. If you only need that information immediately after the pull, creating a breathe activity between "Push to AGV Work" and "Finish" should work just fine. However, if you need to access that information later on the logic, you need to store it on the puller token, so that you don't loose it when the other one (token.Work) is destroyed.

 

 

0 Likes