Trigger an Event-Triggered source in FlexScript?

Trigger an Event-Triggered source in FlexScript?

hai_l2
Not applicable
114 Views
3 Replies
Message 1 of 4

Trigger an Event-Triggered source in FlexScript?

hai_l2
Not applicable

[ FlexSim 20.2.1 ]

Hi,

I have an Event-Triggered Source that is used to pull jobs from a list and process it. It is triggered on items being added to the list. I would also like to trigger when processors are done with their previous job (being available), but also for many other conditions.

Is there a way in FlexScript to manually trigger the Trigger-Source?

Thanks,

Hai

0 Likes
Accepted solutions (1)
115 Views
3 Replies
Replies (3)
Message 2 of 4

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

You do this by using another event trigger called OnMessage. Each of your discrete events like change of a list value, process finish or something else send a message to one object. This object does what you want in the On Message trigger. If you need different action, then you change the message parameter values one, two or three and evaluate the value in the OnMessage trigger to do a different response.

0 Likes
Message 3 of 4

hai_l2
Not applicable

Is there an OnMessage object in process flow?

I only OnMessage as trigger to 3D object events.

Thanks,Hai

0 Likes
Message 4 of 4

joerg_vogel_HsH
Mentor
Mentor

In process flow that is even easier. You add simply more Create Token activities by event and a wait for event activity that is executed, if its own content changes, do the desired action. You connect only your sources with the wait for event activity and use sampler tool to get a statistical value on content change from the same activity.

0 Likes