Configuring Mappings for Workflows

This topic details how to map a view to a workflow state (or states), as well as how to map views to specific users or user groups. Without views and mappings configured, all states in the workflow are displayed on the STEP Workflow navigator tab (including parallels, clusters, and final states). When a workflow includes automated, system, parallel, and/or cluster states, and users will be interacting with the workflow in the STEP Workbench, it is recommended to have mappings in place so that only the user states (e.g., states in which a human must interact) are present on the STEP Workflow tab.

Prerequisites

A workflow has been created and one or more views have been created for the workflow. This is required because the mapping task serves to connect any given view to a particular state or set of states. Therefore, for the exercise to be meaningful, both the view(s) and the state(s) must already exist. Also note that the views must have an ID assigned, else they will not be available for selection in the mapping. For more on creating views, refer to the Configuring Views for Workflows topic here.

Configuration

  1. To add mapping to a view, right-click the editor panel on the left hand side anywhere, and select Add Mapping.

  1. In the right-hand panel in the View Editor window that appears, select the state from the dropdown for which you want to apply a view.

  1. From the View dropdown, select the view that you would like to apply to the state.

  1. Repeat the above steps as many times as needed so that each state requiring human interaction has a view assigned to it. Note that the same view can be applied to multiple states.
  2. Sequence the mappings in the appropriate order by right-clicking on a mapping and selecting 'Move Up' or 'Move down'. Sequencing of views is important as this defines the order in which the views are presented to the user on the STEP Workflow navigator tab. Mapping sequence is typically assigned alphabetically or sequentially (e.g., the first state in the workflow is sequenced first).

  1. Save the workflow, exit the STEP Workflow Designer, and go to the STEP Workflow navigator tab.
  2. Select the workflow for which view and mapping is being created and expand the flipper. When the flipper is open for the workflow, only the states for which a mapping was created are visible.

Workflow User / Group Specific Mappings

It is possible to create mappings that only apply to specific users or user groups. The mappings of a particular workflow could be configured so that only users in a specific group can view a given state (e.g., only administrator users have access to automated and system states to intervene in case of errors), or so that users in a specific group could view tasks within the same state with different views (e.g., an end user may need to view different data than an administrator).

  1. To create user / user group specific mappings, right-click the left panel in the View Editor, and select Add Mapping Group.

  1. Select the user(s) and/or group(s) you want the mapping to apply for. Note that there are separate fields for if a group is added verses a single user.

If the Include all sub groups is checked, any subgroups within the group, as well as direct users in the group will have access to the view.

In the example below, if the Include all sub groups option was checked and User Group was selected, this would include User Group 2, its child User 3, as well as User 1, and User 2.

If the Include all sub groups box is unchecked, only the top level users directly in the group have access to the view. For example, with User Group selected, only User 1 and User 2 would have access to the view as they are the only direct user children of the selected group.

  1. When all users or groups are added, right-click on the Mappings: empty node and select Add Mapping from the context menu.

  1. This will bring up the States and Views dropdown menus to choose from (as with configuring a standard mapping). Select the appropriate state and view for the user or groups to have access to. Close the View Editor and save the workflow.

It is important to note that when a state is mapped to a view both inside and outside a mapping group, and a user logs in who is either directly specified on the mapping group, or member of a group that is specified, the mappings will be evaluated from the top down and the first one that matches will be used. In other words, if the same user is in two different groups with different privileges, but both groups are mapped to the same state, then whatever group comes first in the mapping dictates the allowable privileges for that user. Thus, the order of mappings and mapping groups is significant and mappings must be sequenced appropriately.