Selecting Pages for Workflow Panels

Important

Workflow Panels are available in AIMMS version 4.68 as an Experimental Feature. Please reach out to User Support on how to enable Experimental Features.

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