If you have access to the process instance that contains the variable,
you can do 
  ((RuleFlowProcessInstance) processInstance).setVariable(name, value);

Changing the value of an object that has been set as a variable in a
process instance should also be taken into account.  Do you have an
example of where this seems to have been broken in the snapshot?

Kris

Quoting Todd Pagni <[email protected]>:

> How do you set a flow variable (not global) from inside a rule so it
> is
> available for nodes that follow the rule execution? I cannot seem to
> find this in the doc.
> 
>  
> 
> Previously I had a Person() fact that was also passed into the flow
> as a
> variable, when I modified the fact Person() object it was reflected
> in
> the flow variable, but the latest snapshot seems to have broken this
> so
> I am looking for alternatives.
> 
>  
> 
> 
> Thanks,
> 
> Todd
> 
> 




Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to