How to save a value of local variable to rule input.
Discussion posts and replies are publicly visible
under saveinto Parameter use a!save(ri!{varName},local!{localVariablName}). For example a!save(ri!data,local!data).
I'm not using this in interface, I'm doing this in rule expression.
My input is a ID......in the expression rule first I will get the value and do some process with that value and then processed data will be my output.
In this case I thought of using local variables for processing (like in traditional programming languages) and once its done I will assign back to output variable.
THERE ARE NO OUTPUT VARIABLES!!!!!
I did get that point. My only point is how to work with both local variables and rule inputs.
Did you see the screenshot?
I did. How to do the other way around.
local!var1 : "sample data",
ri!data : local!var1
You cannot do that. Values of RI cannot be changed. As a matter of fact, values of local variables also cannot be changed once defined.
I'm getting this error while applying above logic.
Expression evaluation error at function a!localvariables: Local variables may only be defined within the "local" domain. The local variable 'ri!sample' uses an invalid domain.
You mean i cant updated the value of local variable or rule input?
Yes. You cannot. You can do it in an interface but you cannot do it in an expression rule
Thank you, now I got the point.