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.
You cannot update the values of variables in an expression rule. Also, you should not be needing it. Rule inputs are for bringing inputs from outside the rule. For returning a value, you can just write it in the expression rule, as the last statement and it should be returned.
Why you have to pass local variable to rule input? Just pass local variable as an output.