Start an Action Chain From an Action Chain

You add the Fire Event action to an action chain when you want to start another action chain from within it. Typically you would do this when you want to trigger a notification, like displaying a popup window with a message, or perhaps when you want to transform some data. For example, there might already be a showMessage action chain that displays a notification. You can add a Fire Event action to your action chain to start the showMessage action chain.

To start an action chain from an action chain:

  1. Open the Layout's Actions editor, then select the action chain which you'll edit to add the Fire Event action.

    The editor only lists the action chains in the Layout that you can edit.

  2. In the Diagram editor, drag the Fire Event action from the palette and drop it in the action chain where you want the event to occur.
  3. Select the Fire Event action in the action chain, then specify the custom event it should trigger in the Properties pane.
  4. Click Go to Custom Event in the Properties pane to open the Events editor.

    You use the Events editor to edit the event's Behavior and Payload properties. For details on these properties, see Choose How Custom Events Call Event Listeners.

  5. Create an event listener for the custom event.
    1. Open the Layout's Event Listeners editor, then click Add Event Listener.
    2. In the Create Event Listener dialog box, select the custom event for the Fire Event action in your action chain. Click Next.
    3. Select the action chain you want the event listener to start. Click Finish.