question

Leandro Meirelles avatar image
0 Likes"
Leandro Meirelles asked Felix Möhlmann commented

Delay time equal to wait for event

Hello,

In my process flow i got a Event-triggered source that waits for a token of the main flow to enter on a sub flow, so as soon as the event-triggered source creates the token, i need this created token stay on a delay block till the token of the main flow exits the sub flow.

How do I do that?

1719233043922.png

FlexSim 24.1.0
delaytime
1719233043922.png (40.9 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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

Is this just to set the state? Because you can do that in a Custom Code activity. Just make sure to place a "Breathe" (0s delay) between any task activity and this one. Otherwise the object will switch back to idle as part of the default state swap.

1719234383893.png

The only way to keep the token in the Delay Task would be to use a practically infinite time and release the token in a "Release Token" activity or through code later.


1719234383893.png (15.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.