Chaining rules, including those in decision tables, can be achieved by
using a transient control fact.
rule your DRL rule 1
when
YourObject( field == 1 )
then
insertLogical( new TransientControlFact( dtable1 );
end
rule your DRL rule 2
when
YourObject( field == 2 )
then
insertLogical( new TransientControlFact( dtable2 );
end
Then in the decision table use the transient control fact in an additional
column. The DRL would look like this:-
rule dtable1 row 1
when
TransientControlFact( dtable = dtable1 )
YourOtherFacts( )
then
end
rule dtable1 row 2
when
TransientControlFact( dtable = dtable2 )
YourOtherFacts( )
then
end
How you retrieve the results from the Decision Tables is up to you (e.g.
queries, globals etc).
With kind regards,
Mike
On 10 October 2012 09:34, Manasi manasi.a.da...@capgemini.com wrote:
Hi,
With Drools I need to execute a DRL first and based on its output value I
need to evaluate a decision table in guvnor and get the output values.
Please let me know how this can be done.
Thanks,
Manasi
--
View this message in context:
http://drools.46999.n3.nabble.com/Evaluating-decision-tables-from-DRL-tp4020192.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
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users