-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Component/s: Rule - Smart Values
-
Minor
-
Jira Software
Issue Summary
Using a math operator * with multiple smart values within a loop does not work.
For example:
- #varLoopValues.rightPad(varLoopValues.length.plus(cycles), "X").remove("NULL").replaceAll("X","X,").substringBeforeLast(",").split(",")#=smartvalue1*smartvalue2/^last,/{
Unknown macro: {/}
}
The same works, if we have one of the smartvalues defined as it is:
- #varLoopValues.rightPad(varLoopValues.length.plus(cycles), "X").remove("NULL").replaceAll("X","X,").substringBeforeLast(",").split(",")#=smartvalue1*50{{/}}^last,/{
Unknown macro: {/}
}
Steps to Reproduce
- Have the initial value defined as Null for varLoopValue.
- Have 2 smart values defined with numeric values i.e smartvalue1 and smartvalue2
- #varLoopValues.rightPad(varLoopValues.length.plus(cycles), "X").remove("NULL").replaceAll("X","X,").substringBeforeLast(",").split(",")#=smartvalue1*smartvalue2/^last,/{
Unknown macro: {/}
}
Expected Results
Should work similar to the one with with fixed value of 50 or any numeric value.
Actual Results
The below exception is thrown in the xxxxxxx.log file:
Results in Unable to render smart values when executing this rule: Missing parameter(s) for operator *: 0*
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available