Add a Fire Event Action
You add a Fire Event action to invoke a predefined event or a custom event that you have defined in your application.
A custom event, created using the Events tab, is defined for an application, flow, page, or fragment. It can be used to perform some action, such as navigating to a page, and it can carry a payload that you define when you create the event.
Here's an overview of how a custom event and the Fire Event action are used:
- Create a custom event, defining parameters if required.
- Create an event listener, which can start more than one action chain:
- In the Create Event Listener wizard, assign the event listener the custom event:
- Create a new action chain for the event, which is launched when the event is triggered. Create the action chain through the Event Listener tab, because if the listener's custom event has input parameters, the action chain is created with an
event
input parameter. Thisevent
object will contain the custom event's input parameters (example:event.param1
,event.param2...
), and theevent
object is automatically passed to the new action chain..
- In the Create Event Listener wizard, assign the event listener the custom event:
- In the action chain that will trigger the event, use the Fire Event action to trigger the custom event, providing any parameters defined for the event.
To use a Fire Event Action:
For API information about this action, see Fire Event in the Oracle Visual Builder Page Model Reference.