<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>I have been running more test cases on Drools-Guvnor, 5.1.0.M2, and I found a solution for the question 3) I had on my initial email thread.<br><br>As for the 1), and 2), here is more context, hope that will help in debugging/solving my issues, as I am stuck at this point.<br><br>1) I need to create a BRL with the IN conditional element for the Fact field that is Text type.<br>I can do that when creating a technical rule, but I see no option for the BRL with guided editor. The option for the text fields are (equals, not equal, matches, sounds like). <br>However, even with the technical rule there seem to be some issues. First, I can compile and verify the technical rule OK, but when I ran a test for the technical rule, I got an error that I pasted below. Here is the technical rule with the IN condition:<br><br>when<br>&nbsp;&nbsp;&nbsp;
 #conditions<br>&nbsp;&nbsp;&nbsp; $assignmentRule: RequestItemAssignmentRule(approvalLevel=="Approval_Level_1")<br>&nbsp;&nbsp;&nbsp; Attribute(code=="EQUIPMENT_FAMILY",uvalue <span style="font-weight: bold;">in</span> ("200","300")) <br>then<br>&nbsp;&nbsp;&nbsp; #actions<br>&nbsp;&nbsp;&nbsp; modify ($assignmentRule){assignTo="admin", assignToId="394394993"}<br><br>The error when I ran the test for this technical rule, is:<br><br>Error: Unable to determine the used declarations.
java.lang.Class cannot be cast to org.mvel2.util.MethodStub<br><br><br>2) I have a decision table manually created, that is using for one of the conditions this formula (with FROM and IN for the field):<br><br style="font-weight: bold;"><span style="font-weight: bold;">Attribute(code=="DISCIPLINE" &amp;&amp; uvalue in ($param)) from assignmentRule.getAttributes() </span><br><br>The drools engine loads the decision table and executes it correctly in the app. <br><br>What I try to do, is to create a decision table in Guvnor, using the guided editor, and set the same condition for one of the fields. But I cannot find how to do this. On the editor, it says that I can use Predicate in order to evaluate an expression and use $param, but when I select the "Predicates" option on the editor, it says for both Field and Operator that "(not needed for predicate)", and I cannot enter anything.<br><br>What am I doing wrong? I appreciate a lot for any insight/hint, or
 solution.<br><br>Thanks,<br>Patricia<br><br><br><br><br><br><br>--- On <b>Sun, 7/18/10, Patricia Bogoevici <i>&lt;patriciabogoevici@yahoo.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Patricia Bogoevici &lt;patriciabogoevici@yahoo.com&gt;<br>Subject: Re: [rules-users] How to configure conditional elements (IN, FROM) in Guvnor and more<br>To: "Rules Users List" &lt;rules-users@lists.jboss.org&gt;<br>Cc: "rules-users@lists.jboss.org" &lt;rules-users@lists.jboss.org&gt;<br>Date: Sunday, July 18, 2010, 11:30 AM<br><br><div id="yiv867571932"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">Hi,<br><br>Oh, right. I am using 5.1.0.M2.<br><br>Thanks,<br>Patricia<br><br><br>--- On <b>Sun, 7/18/10, Salaboy <i>&lt;salaboy@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left:
 5px; padding-left: 5px;"><br>From: Salaboy &lt;salaboy@gmail.com&gt;<br>Subject: Re: [rules-users] How to configure conditional elements (IN, FROM) in Guvnor and more<br>To: "Rules Users List" &lt;rules-users@lists.jboss.org&gt;<br>Cc: "rules-users@lists.jboss.org" &lt;rules-users@lists.jboss.org&gt;<br>Date: Sunday, July 18, 2010, 11:17 AM<br><br><div id="yiv1321523784"><div>Which version of guvnor are you using?&nbsp;<br><br><div>- CTO @ <a rel="nofollow" target="_blank" href="http://www.plugtree.com"></a><a rel="nofollow" target="_blank" href="http://www.plugtree.com">http://www.plugtree.com</a></div><div>- MyJourney @ <a rel="nofollow" target="_blank" href="http://salaboy.wordpress.com"></a><a rel="nofollow" target="_blank" href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a></div><div>- Co-Founder @ <a rel="nofollow" target="_blank" href="http://www.jbug.com.ar"></a><a rel="nofollow" target="_blank"
 href="http://www.jbug.com.ar">http://www.jbug.com.ar</a></div>- Mauricio "Salaboy" Salatino -</div><div><br>On Jul 18, 2010, at 4:22, Patricia Bogoevici &lt;<a rel="nofollow">patriciabogoevici@yahoo.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">Hi,<br><br>I am evaluating Drools Guvnor for our application, and I am stuck with a few things. I appreciate a lot, if someone can help me, or give me some hints. <br><br>1) How can I
 configure Guvnor, BRL Guided Editor, to allow for IN conditional element?<br>By default, when I create a new package, and then create a new BRL rule, I have these options for a text Fact field:<br>- equal<br>- not equal<br>- matches<br>- sounds<br>I do have the IN conditional element for the Decision Table rule - "is contained in the a (comma separated) list". <br><br>2) How can I configure Guvnor, Decision table, to use the FROM condition element?<br>I have a fact, Fact1, that contains a list of Fact2. The condition I need to configure in the Decision Table, is to iterate the collection of Fact2 objects that is on the Fact1, and apply constraints on Fact2 fields. <br><br>3) How
 can I insert a list of facts when testing a rule? My test case is the following:<br>I have a Fact1, which contains a list of Fact2. And the rule, is expecting to get Fact1, with a list of Fact2 inside. <br>When I create the Fact1, and add the collection field, it shows the option to create a guided list where I can specify a literal value, or a variable. But there is nowhere to create a Fact2 with its fields. I did inserted 2 separate Fact2 objects, but how I can link these 2 objects to the collection of the Fact1?<br><br>Thanks in advance,<br>Patricia</td></tr></tbody></table><br>







      </div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>rules-users mailing list</span><br><span><a rel="nofollow">rules-users@lists.jboss.org</a></span><br><span><a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></span><br></div></blockquote></div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>rules-users mailing list<br><a rel="nofollow">rules-users@lists.jboss.org</a><br><a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div></blockquote></td></tr></tbody></table><br>

      </div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" href="/mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div></blockquote></td></tr></table><br>