[rules-users] How to use a temp variable accorss multiple rules?
Michael Anstis
michael.anstis at gmail.com
Tue Nov 15 09:05:58 EST 2011
Pass the output of one rule as a Fact in Working Memory to the other.
when
Something()
then
insert( new Output());
end
when
Output()
then
//Whatever
end
On 15 November 2011 13:56, Zhao Yi <zhaoyi0113 at gmail.com> wrote:
> I write some rules to do some calculation. One rule's output is another
> rule's input. How can I define the output and input value? How can I let
> the
> value be transferred between rules?
>
> Thanks,
> Zhao Yi
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/How-to-use-a-temp-variable-accorss-multiple-rules-tp3509713p3509713.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111115/b874106e/attachment.html
More information about the rules-users
mailing list