MY rule condition and action is defined as below. I am getting compilation error. In rule condition I am specified the left and right values as 'abc' and 'xyz' which values are stored in a MAP of Me object. When I am using the me.getVariableValues('abc') in action part then its working fine. But, when I want to use same me.getVariableValues('abc') in condition then I am getting below compilation error.
Error while creating rule package - [139,0]: unknown:139:0 mismatched token: [@463,2378:2383='me',<7>,139:0]; expecting type RIGHT_PAREN[140,37]: unknown:140:37 Unexpected token ')'[140,39]: unknown:140:39 Unexpected token 'abc'
rule "rule"
when
me: Me()
getValue(me.getVariableValues(),${condition.leftVariableCode}) ${condition.operator} getValue(me.getVariableValues(),${condition.rightVariableCode})
then
me.addVariableValue("$action.output.variableCode", me.getVariableValue("$action.firstInput.VariableCode") $action.operator me.getVariableValue("$action.secondInput.VariableCode"));
end