question

Joerg Vogel avatar image
0 Likes"
Joerg Vogel asked Joerg Vogel commented

Is there an event after or before a task gets executed in a taskexecuter?

A taskexecuter can receive and executes tasks of tasksequences. Is there a method to react on finish of a single task in a tasksequence. I think on the mechanism when FlexSim increments a value of current active task to total tasks. I would have then an opportunity to interrupt an executed tasksequence and insert another action. I know I can previously insert after each regular task a send message, break or call sub task to achieve a similar behavior and I also know I can evaluate exit or entry of tokens in process flow. I am interested in an event or method I can evaluate in a wait for event activity in process flow when a taskexecuter himself finishes a task of a tasksequence.

Many thanks for your answers and suggestions.

Joerg

FlexSim 21.0.9
tasktask end
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
1 Like"
Felix Möhlmann answered Joerg Vogel commented

Any task executer offers the "On Task Start" and "On Task Finish" events that should allow you do to exactly this.

In the attached model I listen to the "On Task Finish" event with an event triggered source. The event offers the task sequence, the task rank inside the sequence and the task type as parameters.

OnTaskFinish.fsm


ontaskfinish.fsm (44.0 KiB)
· 1
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

Many thanks, Felix, I wasn't aware of this event type. I still stuck in earlier Versions or I missed it.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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