Selecting Pages for Workflow Panels

Important

  • Workflow panels are available in software versions from AIMMS 4.68 onwards.

  • Starting from AIMMS 4.92, one sub-level of steps can be configured for a workflow step. This makes it easier to apply a hierarchical organization in your workflow(s).

You can use element and string parameters to reduce errors while configuring the steps for Workflows. For example, this helps you avoid entering a wrong pageId, or adding a Side Panel pageId or Dialog pageId.

The procedure can be summarized as follows:

  1. Create the element parameter to select the pageId and redirectpageId.

  2. Create the string parameter to enter values for rest of the properties.

  3. Create a string parameter that uses the above element and string parameter in combination to complete the data for the steps of the Workflows.

Below we will discuss these steps in more detail.

Selecting Pages and Redirect Pages

  1. First, let’s create the element parameter to select the pageId and redirectpageId.

  1. Create an element parameter, let’s call it MyWorkflowStepsPages, indexed over (webui::indexWorkflowOrder,webui::indexNoOfPages,webui::indexWorkflowPageSpec).

  2. Add a domain condition to index domain:

    (webui::indexWorkflowPageSpec = 'pageId' OR webui::indexWorkflowPageSpec = 'redirectpageId')
    

So the index domain will look like this:

(webui::indexWorkflowOrder,webui::indexNoOfPages,webui::indexWorkflowPageSpec) |
(webui::indexWorkflowPageSpec = 'pageId' OR webui::indexWorkflowPageSpec = 'redirectpageId')
  1. Add a range of webui::AllRegularPages.

Now, in the data you can only select values for pageId and redirectpageId from drop-down menus where values are from the AllRegularPages set.

Adding Values for Other Properties

  1. Next let’s create the string parameter to enter values for rest of the properties:

  1. Create a string parameter, let’s call it MyWorkflowStepsDetails, indexed over (webui::indexWorkflowOrder,webui::indexNoOfPages,webui::indexWorkflowPageSpec).

  2. Add domain condition to index domain:

NOT(webui::indexWorkflowPageSpec = 'pageId' OR webui::indexWorkflowPageSpec = 'redirectpageId')

So the index domain will look like this:

(webui::indexWorkflowOrder,webui::indexNoOfPages,webui::indexWorkflowPageSpec) |
NOT(webui::indexWorkflowPageSpec = 'pageId' OR webui::indexWorkflowPageSpec = 'redirectpageId')
  1. Go to the data and add values for the rest of the properties. Now you will not be able to add values to the pageId and redirectpageId.

Selecting Steps for the Workflow

  1. Finally we will create a string parameter that uses the above element and string parameter in combination to complete the data for the steps of the Workflows.

  1. Create a string parameter, AllMyWorkflowSteps, again indexed over (webui::indexWorkflowOrder,webui::indexNoOfPages,webui::indexWorkflowPageSpec).

  2. In the definition, add:

MyWorkflowStepsDetails(webui::indexWorkflowOrder, webui::indexNoOfPages, webui::indexWorkflowPageSpec) +
MyWorkflowStepsPages(webui::indexWorkflowOrder, webui::indexNoOfPages, webui::indexWorkflowPageSpec)

This is a concatenation of the string and element parameter. It gives the complete data for defining the Workflow steps.

  1. Add the AllMyWorkflowSteps string parameter in the Workflow Panel > Workflow Steps field, under Application Settings.

Result in WebUI

After configuring both the string parameters in Application settings > Workflow Panel, the Workflow Panel will be displayed on the pages configured in the MyWorkflowStepsPages element parameter, as shown in the example below.

../../_images/workflow-page-example.png