Using the Multiple Condition AgileShape to Check if a Value is Empty

To use the Multiple Condition AgileShape to check if a value is empty, do the following.

Prerequisites

Navigation

  1. In AgilePoint Envision, open a process template.
  2. Navigate to the Generic BPM stencil.
  3. On the Generic BPM stencil, drag the Multiple Condition AgileShape, and drop it on the process template.
  4. On the New Condition Activity Window - Multiple Condition AgileShape, define your logical rules.
  5. To view the entire list of properties, in the Design Tasks pane, click Show Properties.

Instructions

  1. Define a custom attribute named Empty for use throughout the process template:
    1. In AgilePoint Envision, open a process template, and select the process template to display its properties in the right pane. 
    2. Below the properties box, click the Manage Process Attributes link.
    3. On the Custom Attributes Editor window, click Add.
    4. In the Attribute Name column, type Empty.
    5. In the Attribute Type column, select String.
    6. Click OK to close the Custom Attributes Editor window.
  2. Select the custom attribute named Empty (which you want to use):
    1. Add an Update Custom Attributes AgileShape to your process model.
    2. In the Activity Properties panel, click Advanced (a property group).
    3. On the Configuration field, click the Ellipses button.

      The Create or Update Custom Attributes window appears.

    4. Click Add, and then select the newly added row to make the Schema button available for use.
    5. Then, click Schema.

      The Select XPath from Attributes window appears.

      1. Click the Process Attributes tab.
      2. Select the Empty attribute, and then click OK to close the Select XPath from Attributes window.
    6. On the Create or Update Custom Attributes window, in the Expression column for the Empty attribute, enter "".
    7. Click OK to close the Create or Update Custom Attributes window.
  3. Add a Multiple Condition AgileShape to your process model. Do the following:
    1. On the New Condition Activity window, click Advanced Mode.

      The Define Conditions window appears.

    2. Click New. The Define Expressions window appears.
      1. Enter a Name and Operator for the condition. For example, empName and == (String comparison operator).
      2. In the Value list, select <XML Schema>.
      3. Click OK to close the Define Expressions window.
    3. On the Define Conditions window, in the Description box, type a description for the condition, and then click Close.

    This enables you to use the value of ${Empty} as a null value for the purpose of string comparison.

More Information