question

Manuel Sinco avatar image
0 Likes"
Manuel Sinco asked tannerp commented

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

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.

FlexSim 19.1.2
processflowflexsim 19.1.2
error-in-delay.fsm (37.2 KiB)
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

tannerp avatar image
1 Like"
tannerp answered tannerp commented

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


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

Manuel Sinco avatar image Manuel Sinco commented ·

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 0 ·
tannerp avatar image tannerp Manuel Sinco commented ·

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!

1 Like 1 ·