Add a Set Field rule

Applies to User roles: System Administrator

Implementer

This rule enables you to set a field with a value that is determined by a JavaScript. From a rule set, you can select a common field from multiple tables and set its value based on a JavaScript expression.

Note Make sure that the field is set to the contents of the value variable. If it is not set to the value variable, the JavaScript cannot be processed.

To configure a field based on a JavaScript, 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 a Field.
  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 an applicable field name from the drop-down list.
  7. Type the JavaScript that sets the variable value to the desired value for the field in the text box.
  8. 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