question

Vedran RL avatar image
0 Likes"
Vedran RL asked Jeanette F commented

How to attach event trigger to arrival time inside Schedule Source?

FlexSim 20.0.0
flexsim 20.0.0arrivalsschedule source
capture.jpg (191.9 KiB)
question.fsm (68.2 KiB)
· 3
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 ·

You can identify a second scheduled arrival by assigning a label value. You can assign a label value by source code and this code can send a message to get an event you can listen to. Or a next activity will evaluate this label to do something.

In fact there is already an event. It is called On Creation. But it is up to you to filter this event to be evaluated only for tokens that are created upon the second arrival.

0 Likes 0 ·
Vedran RL avatar image Vedran RL Joerg Vogel commented ·

Hi Jorg,

Thank you on answer , can you show me on one case how to do it? Thank you in advance and Happy New Year. :)

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Vedran RL, was jason.lightfoot's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

Attached an example using a label on the process flow to record the time of the last arrival and thereby have a unique token created and retained for each arrival event, regardless of the number of tokens generated by the arrival.

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

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.