Administer > Application setup > Process Designer > Adding a rule > Add a Set Mandatory Variables rule

Add a Set Mandatory Variables rule

Applies to User Roles:

System Administrator

Implementer

This rule enables you to set global and thread variables as mandatory. If mandatory variables are empty, then a default value is set if specified in the Rule.

Global or thread variables begin with the $ symbol. However, the rule does not accept local variables beginning with $L. Global variables are set when the operator logs on and the server automatically cleans them up when the session ends.

Thread variables do not have a consistent naming scheme. They are only valid for the current RAD thread. If the RAD thread terminates, the server automatically cleans up all thread variables.

To add a Mandatory Variables rule, follow these steps:

  1. In the System Navigator, click Tailoring > Process Designer > Rule Sets.
  2. Click Search to open the Rule Set form, and then select the rule set to which you want to add the rule.

    Note You can edit user-defined rule sets only. Out-of-box rule sets are labeled as Micro Focus Proprietary and cannot be modified.

  3. Click Add Rule to open the Select Rule Type page, and then click Set Mandatory Variables.
  4. In the Rule Description field, type a description of your new rule.
  5. Click Edit to add conditions to the rule.

    Note If you do not specify a condition, the value defaults to Always.

  6. Select the error message type (Pop-up or Screen) that is displayed during validation.

  7. Click the Show All Error Messages Together check box if you want to display all error messages together during validation.
  8. Select a global or thread variable.

    Note If a mandatory variable is empty, then the rule sets it to a default value.

  9. Type the variable of the default value.
  10. Click OK to add the new rule to the rule set.

Related topics

Process Designer
Process Designer security model
Adding a rule

Create a rule set