Use business rules in folder validation

Use business rules to create complex validation logic that can be used during validation of a folder structure.

  • Define the business rule method for a folder.
  • Use one or more business rules in a folder type to help in validating a folder contents at runtime.
  • Associate business rule validators with a field in a folder type.
    Note When a business rule is executed to validate a field and the rule fails, every field associated with the rule is marked as invalid.

To set up business rules:

  1. Select the Folder Type for which to create the business rule and click the Field Validation tab.
  2. Enter a Name for the validation rule.
  3. On the Type list, select Business Rule.
  4. Consume the Business Rule to use.
    Note A business rule must have two outputs - a string and a boolean. The input variable can be of any type. See Create a Business Rule for more details.
  5. Click Configure.

    The input variables appear under Rule Inputs.

  6. Under Rule Inputs, consume a folder field, system property of the folder or enter a value to use in the Value box.

    If the rule has a folder as an input you can map the InstanceID system property to allow the business rule to access any fields or system fields within the folder process variable

    Note Once the rule executes the outputs are updated as follows:
    Business Rule Parameter Variable Type Output Description

    IsValid

    Boolean

    Output

    Specifies the outcome of the business rule and the review Valid status of the folder.

    ErrorMessage

    String

    Output

    Specifies the message to display if validation fails.