Host and Run Workflows in ArcGIS Experience Builder

This procedure assumes you have already downloaded and deployed the widget that allows you to host and run workflows from Experience Builder apps.

See Prepare the Workflow Widget for ArcGIS Experience Builder for more information.

The following steps are required to host and run workflows in Experience Builder:

  1. Configure a widget to run the workflow.

  2. Add data to the widget.

  3. Configure widget behavior.

  4. Add parameters to the widget.

  5. Run the workflow.

Configure a Widget to Run the Workflow

The steps to configure a widget to run the workflow include the following:

Add a Workflow to the Widget

To add a workflow to the widget: 

  1. In Experience Builder, configure the app that will run the workflow.

  2. In the left toolbar, click Insert to open the Insert Widget panel.

  3. Drag and drop the Workflow widget from the toolbar onto the canvas.

  4. In the widget Configuration panel on the right, you can customize the widget icon and label. The label is used as a tool-tip for the widget in the running app.

    For best results, the icon should be 24 x 24 pixels. Other sizes are adjusted to fit. The supported file formats are PNG, GIF, and JPEG.

  5. Click Select Workflow.

    The Select Workflow window opens for you to navigate to the workflow you want to assign to the widget.

    If you created the workflow, it will be listed on the My Content tab. If the workflow is shared with you, it will be in My Organization, and/or ArcGIS Online, depending on how it is shared.

    Example of ArcGIS Online tab showing workflows

  6. Locate and select the workflow.

  7. Click Open.

  8. Save the app.

Add Data to the Widget

If your workflow requires a map or access to a data source:

Configure Widget Behavior

There are a number of different settings you can use to change the behavior of the widget.

Add Parameters to the Widget

If the workflow takes one or more inputs, continue with the steps below.

To add parameters to the widget:

  1. Click Configure Parameters > Add Parameter.

  2. In the Parameter Name field, enter the name that you use to access the input in the workflow.

  3. In the Parameter Value column, enter the input's value.

    The value must be a string. You do not need to use quotes around the string.

  4. Repeat this step to add as many inputs as the workflow requires.

  5. Save the app.

Configure Message Action Workflows

You can use Message Action Workflows to run workflows from other widgets.

To configure Message Action Workflows: 

  1. Click Add Message Action Workflow.

    The Select Workflow window opens for you to navigate to the workflow you want to use via a Message Action.

  2. Locate and select the workflow.

  3. Click Open.

  4. Repeat this step to add as many Message Action Workflows as you need.

  5. Configure Message Actions in other widgets in your app.

    Map widget example:

    1. Click on the Map widget.

    2. At the top of the Map widget settings, click Action.

    3. Click Add a trigger.

    4. Choose a trigger.

    5. The Map widget has two: Extent changes, and Record selection changes. Other widgets can have other message actions. You can see a full list of message actions here.

    6. Under the Widgets heading, click Workflow

      If you have changed the title of your Workflow widget it will appear here as the new title instead.

    7. Click Run Workflow.

    8. Choose the workflow you would like to run.

      The drop-down list contains the primary workflow configured with your widget as well as all message action workflows configured with your widget.

    9. Add any parameters that you would like to include with the message action.

      These will only be provided to the workflow when it is run as a message action.

      Message actions automatically add the message data as workflow inputs.

  6. Save the app.

Run the Workflow

Run the Workflow from the Widget

To run the workflow from the widget:

  1. Run the app.

  2. If the start operation was configured as Start the workflow will run automatically.

  3. Otherwise, click the widget to run the workflow.

    The location of the widget depends on the app's theme and the administrator's configuration.

Run the Workflow from Another Widget

To run the workflow from another widget:

  1. Run the app.

  2. Using a widget that is configured with a Message Action Workflow, trigger the action.

    For example: If you configured the Map widget with an Extent Change trigger, pan the map to run the workflow.