<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Hi,<br>
<br>
I finally noticed a "forall" keyword that might be useful (see section
"5.1.4.1. Syntax of templates").<br>
Maybe can you try something like: <a id="d0e5843"> <br>
<tt>[forall(&amp;&amp;){Option(code == $)}] </tt></a><br>
<br>
<br>
Bruno.<br>
<br>
Bruno Freudensprung a &eacute;crit&nbsp;:
<blockquote cite="mid:4D3D402C.1010807@temis.com" type="cite">
  <pre wrap="">Hi Gurvinder,

I've just taken a look at chapter 5.1 of Drools Expert about decision 
tables but I've been unable to find out how to do that.
If you find a solution, could you please post it here? I'm pretty sure I 
will need that as well ;-).
Best regards,

Bruno.

groovenarula a &eacute;crit :
  </pre>
  <blockquote type="cite">
    <pre wrap="">Thanks for the options, Bruno and Wolfgang. 

But is there a more 'generic' way to do the matches ? The problem I have is
that the # of instances that might match could vary. And I have to provide a
means for the business users to be able to provide that 'option's code'
using a decision table. Basically I need to be able to provide a construct
that's would look something like :

    Options
    "P1,P2"
    "P1,P4,P5"

So in the above decision table had 2 rules where in the first row represents
a rule that matches against Options with Codes P1 and P2. And the second
rule would match against options with codes P1, P4 and P5. 

Is it possible to represent this using Drools decision tables ?

Thanks
Gurvinder

  
    </pre>
  </blockquote>
  <pre wrap=""><!---->
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>

  </pre>
</blockquote>
<br>
</body>
</html>