Actions effect

The Actions effect allows you to automatically run Actions when an automation triggers or recovers.

Configuration

To set up an Actions effect, begin by opening the automation configuration wizard. On the Effects page, add an Actions effect; this will take you to the Actions effect configuration page. One Action will already be added by default under Configured Actions and will be displayed as Unconfigured.

Starting with this unconfigured Action, you can begin configuring your Action. First, search and select the Action that you want to execute. The interface will display the parameters required by the selected Action, as shown in the image below. If the parameter type is supported, you can directly provide a value in the UI.

To add more Actions, select the Add Action button. This will add another tab allowing you to configure a new Action. Note that the execution sequence is not guaranteed when multiple Actions are configured; Actions may be executed in any order.

Actions effect using effect input

Use condition effect inputs

Available inputs

Some object set conditions expose effect inputs. These can be used in the Actions effect. To use condition effect inputs, the type of the Action parameter needs to align with the type of the exposed condition effect input. For example, if the condition monitors the Alert object type, the Action needs to take an object reference parameter of object type Alert.

The following conditions expose effect inputs:

The following effect inputs can be exposed:

  • Object set
  • Object list
  • Single object
  • Property reference

In the example shown below, an objects added to set condition exposes an effect input for an object set of type Support Ticket containing the Support Tickets added. Given that the selected Close Support Tickets Action expects an object set parameter of type Support Ticket, the condition effect input New Support Tickets added is a selectable option.

Actions effect using effect input

Note that object set and object list inputs cannot be combined with single object and property reference inputs, since the former includes multiple objects at a time and the latter includes one object at a time.

Configure execution mode

When effect inputs are used, an execution mode can be configured to determine how objects and actions should be grouped. The options available depend on whether the effect input is for a one affected object (for example, single object and property reference inputs) or multiple affected objects (such as object set and object list inputs).

The use of single object and property reference inputs means that each Action is executed once for each object from the condition. The execution of the Actions can be optimized by customizing the parallelization setting which changes the number of actions that are executed at a time.

Actions effect parallelization setting

The use of object set and object list inputs will mean that the Action is executed for multiple objects at a time. Changing the execution mode will modify how objects are grouped across Action executions. The following options are available for grouping objects:

  • Execute once for all objects: Ensure that the Action is executed once if the condition is triggered by multiple objects at the same time.
  • Execute once for each batch of objects: Split objects into batches of a fixed size, and execute the Action once for each batch. Use this option to optimize the automation to run with higher scale.
  • Execute once for each group of objects: Group the objects by a set of object properties from the condition's object type. Use this option if your action accepts an object set, but assumes that all objects in that set are the same for a set of properties. For example, if your Action takes a set of Support Tickets but expects them to belong to the same Category, grouping by the Category property will ensure that the Action is only executed for one Category at a time. Note that the grouping is based on exact matches of property values. For array type properties, the values must be exact, in-order matches to be grouped together.
Actions effect execution mode setting

Error handling

You can configure multiple ways to handle a failed action, including a retry policy. Available retry policies include:

  • Constant backoff: Automatically retry with a fixed wait time between events.
  • Exponential backoff: Wait time increases exponentially between retries.

You can also configure the amount of jitter, which is a variation in delay time between retries to prevent simultaneous retries. Jitter can be specified as:

  • A factor by which retry delays should be randomly varied. For each retry delay, a randomly selected fraction of the delay is multiplied by the factor and added or subtracted to the delay. For example, given a delay of 100 ms and a factor of 0.25, the retry delay would be between 75 ms and 125 ms.
  • A duration by which retry delays should be randomly varied. For each retry delay, a randomly selected fraction of the duration is added or subtracted to the delay. For example, given a delay of 100 ms with duration 20 ms, the retry delay would be between 80ms and 120ms.

Action visibility settings

Not all Actions are appropriate to use with Automate. You can disable an Action from being usable in Automate once you configure the action type in Ontology Manager. After creating an Action type, view its details by selecting the action type from the Action type list, then navigate to the Security & Submission Criteria tab in the left side panel. Then, find the Frontend consumers section and toggle off the switch that allows Automate to submit the Action.

Disable Action for Foundry Automate in Ontology Manager

Permissions

Actions are associated with the owner of an automation. This means that the Action will be run on behalf of the owner of the automation. That requires that the owner configuring an Action must pass the submission criteria for that Action.

Actions run on behalf of a specific user (the owner of an automation), so an Action will no longer run if the associated user account is disabled or deleted.