Create a skin rule
Skin rules determine which skin is invoked at runtime. The variables defined for the template map define the skin rule. See Create a process template for more information.
-
When you create a skin on a case fragment template, in addition to the rule variables in the case fragment map, the rule variables of the associated case map are also available while defining the skin rules.
-
If a rule variable in the case fragment map has the same name as a variable in the associated case map, preference is given to the case rule variable. Therefore, only case variables can define skin rules.
-
Unless the rule variables are initialization variables, the values defined for the rule variables during design are used to evaluate a skin rule.
- Open the skin.
- On the Extended Properties page of the skin, click the Rules tab.
-
Enter the skin rules;
consume rule variables, use operators and
provide values for variables.
You can drag the variables to a rule editor. However, if you drag a variable after a mathematical operator, the system treats the variable as a value at runtime. Example: If the value of VAR1=ABC and VAR2=XYZ, in the following rule: [VAR1] = [VAR2], the value of VAR1 is taken as VAR2 instead of XYZ at runtime. To avoid this issue, manually type the value after the mathematical operator. For example, [VAR1] = "XYZ".
- Click Validate to validate the rule.
-
Release the skin.
Based on the rules met at runtime, the relevant skin is applied. At runtime TotalAgility evaluates the rules and applies the relevant skin.Note If two skins have the same rule, then the skin whose rule is met first at runtime is applied.