on 11-07-2014 7:30 PM
Hi,
I am modeling some rules by using a search tree, and I am facing an issue to reuse variables for which a value was already determine in a different section of the tree (lets say a sub-node, I want to avoid the reprocessing of the Procedure call for performance reasons):
Condition1
Condition 2 -> Value Range which call a Procedure call to determine if the value of a parameter is equal to A, this is saved in variable X.
Condition 3
Condition 4 - Result A
Condition 5 - Result B
Condition 6 -> Compares the value of the parameter determined in condition 2, however variable X is empty, the value populated in condition 2 is lost
Condition 7 - Result C
Condition 8 -> Result D
What should I do to keep the value determined in condition 2 during the rest of the processing of the tree?
By the way, in the ruleset I didn't define any expression to Initialize the Variables, because the value of the variable shouldn't be determined before processing the search tree.
Many thanks for your help.
Mario.
Hi Mario,
to the best of my knowledge there is no way to store intermediate results during the processing of an expression. The same thing is e. g. valif when you delegate to expression within the columns of a decision table, so each time the cell or in your case the edge of a tree the expression is reprocessed.
Perhaps it might be an alternative as you mentioned to do the evaluation before firing the search tree via local variables in your rule set in order to optimize performance as this might really become in issue in your scenario.
BR
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.