Applying RulesRules allow you to change the input fields of a custom simulation template based on user input. You can apply a rule to a particular property of a component in a custom simulation template if that property supports rule creation. A rule assigns a value (the value of the rule) to that property when the value of a second component, as entered by the user, meets specified conditions. The descriptions of the different types of components list the properties for each component that supports rule creation. For more information, see Components. You can configure the simulation process in Performance Study with the rules that you defined in Process Experience Studio. For example, you can create a rule for the Hidden property of an
input component that displays a temperature input field only when the user selects an
Allow for temperature dependence check box. The image below shows
the rule that creates this behavior. The image below shows the behavior of the input field. The
Temperatures input field appears only when the user selects the
check box. When you create a rule, you must specify one or more conditions that must be met for the rule to take effect. A condition is based on the value of a second component; for example, a condition might be met when the value of that second component exceeds a specified number. The second component must be a basic component; you cannot use a layout component or an advanced component to create a condition of a rule. For a rule that applies to the Border Color property of a basic component, you can specify conditions that are based on the component's own value. If you specify multiple conditions, all the conditions must be met for the rule to take effect. Rules are applied in the order of their creation. Therefore, if more than one rule's conditions are met, the value of the property is controlled by the last-created rule whose conditions are met. The rules editor lists all rules that apply to a property, numbered in the order of their creation. You cannot change the order in which the rules appear in the Rules Editor. In the Properties
tab a
icon next to the name of a property indicates that the
property supports rule creation. After you create a rule, the app highlights
the icon in blue to indicate that the property's value is subject to a rule. For
example, in the image below, the Label and
Hidden properties of the Checkbox component are each subject to a rule. Associating Rules with Process ObjectsFor some properties, you can associate the value of a rule with a process object, rather than manually entering the value. When you do so, the app assigns the value of the process object as the value of the rule. You can associate the value of a rule with a process object when the rule applies to one of the following properties of the following types of components:
| ||||||||||||||||||||