Skip to content

Actions,Rules and Events

An action invokes a method on the provider in order to retrieve or modify data on an external data source. It publishes the returned data if applicable. If data was returned from the provider method then the action can optionally:

  • Run any attached display task sets to update the state of the user interface. For example, show, enable, expand and reset UI elements.
  • Publish the data. Publishing makes the response (the topic) available to any components that subscribe to the action. This is the standard way of handling OnNotification events

OnNotification events

This event uses to publish and subscribe model to exchange data between the components in the app or template and between providers.

studio-intro-to-actions

Figure: Inner (child) components subscribe to data published by the outer component

For example:

  • An action in an action set is configured to publish a topic, such as get the emails in an email conversation. The action set is part of the event configuration for the app or template (the outer container). When the action set runs, it notifies its subscribers.
  • An element in the app or template, such as a data grid, subscribes to the action response (referred to as the topic subscription). The topic subscription is part of the OnNotification event configuration for the inner component or element.
  • If there is a data transformation configured then you can choose to subscribe either to the raw data (the standard topic subscription), or to the transformed data.