Delay Activity issue. Token don't move to next activity.

Delay Activity issue. Token don't move to next activity.

manuel_s4
Not applicable
2 Views
3 Replies
Message 1 of 4

Delay Activity issue. Token don't move to next activity.

manuel_s4
Not applicable

[ FlexSim 19.1.2 ]

Hello,

I made a simple model which worked properly the first time that I run it but after that, it didn't.

Basically, the issue is that the token in a delay activity does not advance to the next activity even if the delay time has been completed. I checked the connections and they were okay. I tried to delete the delay and change it for a new one but any of this worked.

If I run it automatically, since the first time it arrives at the delay it'll remain fixed to it, but if I run it using the step button, The simulation arrives at time 19 working properly but after that again is fixed to the delay activity.

I'm attaching you the model, to see the error.Error_in_delay.fsm

Thanks,

Manuel.

0 Likes
Accepted solutions (1)
3 Views
3 Replies
Replies (3)
Message 2 of 4

tanner_p
Not applicable
Accepted solution

I think it has to do with the timing of everything. I added some delay activities and it seems to run just fine. There's a lot happening in 0 time the way you had it set up, and I think the Decide and Release Token activities were having issues because they were referencing a child token that had already entered the sink.

error-in-delay_1.fsm

Message 3 of 4

manuel_s4
Not applicable

I think that you are right. I took out some delays that you added but included a breath delay between the custom code and sink activities. Instead of releasing the token directly into the sink, I release it into the breath and works as it supposed to.
Thank you!

P.S. I don't know how to accept you answer as the correct one, based on that it's just a comment.

0 Likes
Message 4 of 4

tanner_p
Not applicable

Glad you got it to work with the proper breathe activity. I'll take care of converting the comment. Thank you for the prompt feedback!