question

gio-c avatar image
0 Likes"
gio-c asked gio-c answered

How to add tasks delayed of some time

Hello,

I have a global table containing all orders with an arrival time associated. I want the operators to perform the tasks contained in the ordx global tables only if the actual time of the simulation is >= than the arrival time. For example now i have operator 2 that must execute ord2 and ord5, once he has finished ord2, he waits 60 sec which is the arrival time of ord 5 and that executes it, but the global timer is well above 60. How can i solve this problem.

Thanks in advance!QUESTION_autosave.fsmorders-table.png

FlexSim 25.0.2
delaytasksequences
orders-table.png (10.3 KiB)
question-autosave.fsm (112.7 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.

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

Since the task sequences contains randomized delay times, you can't create and dispatch them all at the model start. I'd use a small Process Flow and create one token per row. That token then waits until the task should start and only then creates and dispatches the task sequence.

question-autosave_1.fsm


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

gio-c avatar image
0 Likes"
gio-c answered

Thank you very much it helped me. Sorry for the late answer

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.