please tell me the significance of variable template and how it is different from other templates
please give some example.
it would be very helpful
The variable template, as its name suggests, allows you to create new global or local (ruleset-level) variables from the RMA. You may need to define variables to store intermediate decision results that are generated by one rule and used by another one. In this case you may need 3 components:
1) A variable to store the value;
2) A rule or calculation that sets the value;
3) Another rule that uses the value as a condition.
validApplicationFlag is some boolean initially true. //If you want to create new variables from the RMA, here you would use a variable template
rule InvalidApplication is if (some conditions) then validApplicationFlag = false.
rule SomeOtherRule is if (validApplicationFlag = true and some other conditions) then //do something.
This is especially useful when you want to pass decisions generated by one ruleset into another. In such case you would need to define a global variable for that. With variable template you can give business users freedom to define as many global or local variables as they want.
Retrieving data ...