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@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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users