question

Shinya O avatar image
0 Likes"
Shinya O asked Shinya O commented

TaskExecuter FlowItems Event listening

Hi,

I would like to listen events of TaskExecuter FlowItems registered in AStar Navigator using contextdragconnection command after the simulation starts.

For example, "On A Star Block" or "On A Star Rerout".

I registered the created TaskExecuter FlowItems to a group and tried to create an event trigger source for that group, but it doesn't seem to be recognized as a group member.

Is there an alternative?

Thanks in advance.

FlexSim 22.0.16
event triggergrouptaskexecutor flowitem
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 Shinya O commented

You could have a token listen to those events in a Wait for Event activity. When the event fires the token then creates a new token and can go back to listening for the event again immediately.

The listening tokens in turn could be created by a 'master-token', that releases them to a sink, when the respective FlowItem is removed from the model.

FlowItemEventListening_FM.fsm


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

Shinya O avatar image Shinya O commented ·
Thank you for your information.
0 Likes 0 ·