Use Multi Actions Technical Objects

As a story developer, you can use the multi actions technical object and related script APIs to let viewers run multi actions, set and read parameter values.

Prerequisites

Before you can use the multi actions technical object, there have to be multi actions created already.

Consider the following permissions and roles as well:
  • To create or edit a multi actions technical object, you need the permission to edit the story.

  • To select a multi action in the Multi Actions Configuration side panel, you need the read permission for it.

  • To execute a multi action, viewers need the execute permission for it.

Context

Multi action can help users save time when they need to run multiple data actions in sequence, publish versions, run predictive scenarios or combine these operations. There are two ways for you to use this feature:
  • Using the Multi Action Starter widget

    For how to add a multi action starter to your story and configure related settings, refer to Set Up Starters.

  • Using the Multi Actions technical object and related APIs

    You can do the following:
    • Setting parameter values of multi actions

    • Reading parameter values of multi actions

    • Executing multi actions

Procedure

  1. To add a multi actions technical object, in the Scripting section of the Outline panel, choose Start of the navigation path Next navigation step End of the navigation path Multi Actions.

    The side panel Multi Actions Configuration opens.

  2. Under Multi Action, select one of the multi actions that have been created.

    You can see the Parameters section.

  3. Enter the values for the parameters, either by member selection or the default value set in the multi actions designer.
  4. Select Done.
  5. After adding the technical object, you can leverage the following APIs to work with multi actions in your story:
    • Executing multi actions

      • As a blocking operation. Other scripts won't be running until the multi action execution is complete. The API returns the execution status, either success, error or running.
      • As a nonblocking operation. Other scripts can be running at the same time without waiting for the multi action execution to complete. The API returns the execution status, either accepted or error, and a unique execution ID.
        In this case, the onExecutionStatusUpdate event of multi actions technical object can be called when the execution status changes:
    • Getting parameter values

    • Setting parameter values

    • Setting Input Controls

      You can use the bindInputControl and the getBoundInputControl APIs for multi action script objects, which take effect on member and number type parameters specifically.

    • Getting Input Controls

      You can use the bindInputControl and the getBoundInputControl APIs for multi action script objects, which take effect on member and number type parameters specifically.