triggerService
attribute for an event Service specifies that anther service should be triggered by the module which was notified of this service. Serveral conditions are also required:triggerServiceURI
attribute.
invoke()
yourself.
<services> <event name="directTo" triggerService="directed"> <data name="waypoint" type="int" /> </event> <event name="directed"> <data name="waypoint" type="int" /> </event> </services>In that case upon the notification of the
directTo
service for a module, the directed
service will be triggered.directed
service, you can define the method as default with:<module name="FMS"> <implementation path="org.da.myModule" > <initEntryPoint method="init" /> <defaultReceiveEntryPoint method="subscribe" /> <defaultTriggerEntryPoint method="trigger" /> </implementation> <interfaces> <eventReceived service="directTo" > <triggerEntryPoint method="trigger" /> </eventReceived> <eventSend service="directed" /> </interfaces> </module>Or define it as an entry point of the
directTo
service:<module name="FMS"> <implementation path="org.da.myModule" > <initEntryPoint method="init" /> <defaultReceiveEntryPoint method="subscribe" /> </implementation> <interfaces> <eventReceived service="directTo" > <triggerEntryPoint method="trigger" /> </eventReceived> <eventSend service="directed" /> </interfaces> </module>
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence