question

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

Trigger an Event-Triggered source in FlexScript?

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

FlexSim 20.2.1
flexscriptflexsim 20.2.1event trigger
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

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

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.

· 2
5 |100000

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

Hai L2 avatar image Hai L2 commented ·

Is there an OnMessage object in process flow?

I only OnMessage as trigger to 3D object events.

Thanks,Hai

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Hai L2 commented ·

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