Run Workflows in the Sandbox

The Sandbox is VertiGIS Studio Workflow's built-in test environment. It is used to run workflows from the Designer when the workflow is being created.

Typically, workflows are created in stages to make authoring easier. The Sandbox plays an important role in this process:

  1. Add activities to perform one part of the workflow's overall task.
  2. Test the workflow by running it in the Sandbox. Use your browser's console to verify values within the workflow.
  3. Make any necessary corrections and re-run the workflow in the Sandbox. Repeat this step until the workflow works the way you want.
  4. Repeat these steps until the workflow is complete.

To open the Sandbox, click Info in Workflow Designer's sidebar, and then click Run in Sandbox. The Sandbox opens in a new browser tab.

Sandbox Environments

The Sandbox allows you to select the environment you want to use to run the workflow:

Select an environment in the Sandbox to see the exact version of the ArcGIS API for JavaScript that the Sandbox uses.

When you run a workflow in the Sandbox, you want to choose the environment that best matches the environment in which the production workflow will run. The table below outlines which Sandbox environment to use for different production environments. For example, if the workflow uses a 2D map and will be hosted in VertiGIS Studio Web, use the 2D Map (ArcGIS API v4.x) option in the Sandbox.

Recommended Sandbox environments

Production Environment

Map

Sandbox Environment

Notes

VertiGIS Studio Web

2D

3D

2D Map (ArcGIS API v4.x)

3D Map (ArcGIS API v4.x)

 

VertiGIS Studio Mobile
(both VertiGIS Studio Go and custom apps)

2D

2D Map (ArcGIS API v4.x)

VertiGIS Studio Mobile actually uses the ArcGIS Runtime API for .NET. The 2D Map (ArcGIS API v4.x) environment is the closest match in the Sandbox.

Geocortex Viewer for HTML5

2D

2D Map (ArcGIS API v3.x)

 

ArcGIS Web AppBuilder
(both Enterprise and Developer Edition)

2D

3D

2D Map (ArcGIS API v3.x)

3D Map (ArcGIS API v4.x)

 

VertiGIS Studio Workflow Server
(server workflows)

None

Any

The Sandbox environment has no effect on server workflows. When you run a server workflow in the Sandbox, the workflow actually runs in VertiGIS Studio Workflow Server. The Sandbox communicates with Workflow Server over the network to run the workflow.

Sandbox Settings

The Sandbox allows you to configure:

To open the Sandbox's settings, click Settings in the Sandbox's sidebar. To exit the settings, click an environment in the sidebar.

Run a Workflow in the Sandbox

The following procedure shows how to run a workflow in the Sandbox. If your workflow takes design-time inputs, make sure you complete the step to configure workflow parameters.

To run a workflow in the Sandbox:

  1. Open the workflow in Workflow Designer.

  2. Make sure that the tab for the workflow you want to run is selected in Designer.

    The Sandbox runs the active workflow. You do not need to save the workflow before you run it.

  3. Click Info in the sidebar, and then click Run in Sandbox.

    The Sandbox opens in a new browser tab. The first time you run the Sandbox, it shows the default 2D map. See Use a Custom Map in the Sandbox for instructions on configuring the Sandbox to use a custom ArcGIS web map or scene.

    Sandbox, showing the default 2D map

  4. If the workflow takes design-time inputs, configure values for the workflow to operate on when it runs in the Sandbox:

    1. Click Settings in the Sandbox's side panel.

    2. Click Add Parameter.

    3. In the name box, enter the name of the input, as defined in the workflow.

    4. In the value box, enter a valid value for the input.

    5. Continue to add parameters until you have added one for each design-time input.

    6. Click Save.

  5. In the sidebar, select the environment that you want the workflow to run in.

    If you are prompted to sign in to access the item in ArcGIS, refresh Workflow Designer and sign back in. Return to the Sandbox.

  6. Click Run Workflow.

    The workflow runs in the Sandbox. You can interact with the workflow the same way an end user would, filling out and submitting forms, interacting with the map, and so on.

Tips for Using the Sandbox

Use a Custom Map in the Sandbox

The Sandbox has default maps (2D and 3D) that it uses with running workflows. You can configure the Sandbox to use a custom ArcGIS web map and/or web scene instead of a default map. This is useful for testing workflows that manipulate the map or require the user to interact with the map.

If you configure a custom web map, the Sandbox will use it whenever you run a workflow in one of the Sandbox's 2D environments, 2D Map (ArcGIS API v3.x) or 2D Map (ArcGIS API v4.x).

If you configure a custom web scene, the Sandbox will use it whenever you run a workflow in the 3D environment, 3D Map (ArcGIS API v4.x).

Sandbox with a custom web map

 

To configure a custom web map or web scene for the Sandbox:

  1. Open Workflow Designer.

  2. Click Info in the sidebar, and then click Run in Sandbox.

    The Sandbox opens in a new browser tab.

  3. Click Settings in the Sandbox's side panel.

    The Sandbox Settings panel opens.

  4. Configure a 2D web map, 3D web scene, or both:

    • 2D: To use a custom web map in the Sandbox's 2D environments, enter the URL for the web map's ArcGIS item in the Web Map box.
    • 3D: To use a custom web scene in the Sandbox's 3D environment, enter the URL for the web scene's ArcGIS item in the Web Scene box.
  5. Click Save.

    The Sandbox Settings panel closes.

  6. Make sure your custom map(s) load by selecting an environment:

    • 2D: If you configured a web map, select one of the 2D environments.
    • 3D: If you configured a web scene, select the 3D environment.

Configure the Locale in the Sandbox

The following procedure shows you how to configure the Locale setting in the Sandbox. This allows you to test your translations. For more information, see Translate Workflows.

To configure the locale in the Sandbox:

  1. Open the Workflow Sandbox.

  2. Click Settings in the Sandbox's side panel.

    The Sandbox Settings panel opens.

  3. Click in the Workflow Locale box and select from the list of available languages.

  4. Click Save to apply the specified language to your workflow translations.

    The Locale setting is always visible in the Sandbox so you can see which language is currently configured.

    Locale setting displayed in the Sandbox