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(a)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-mult...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users