<p>If you need to call a method that does not follow the java bean method convention, then you need to use an eval(). Please read the documentation about eval() to see how it is used and the inconvenience that ot has.</p>
<p>Best,</p>
<p><blockquote type="cite">El oct 3, 2010 6:44 a.m., "Nadav Hashimshony" <<a href="mailto:nadavh@gmail.com">nadavh@gmail.com</a>> escribió:<br><br><div dir="ltr">Hi.<br><br>After importing the fact model to guvnor i open try to create a new rule.<br>
<br>in the left side i see the fact model, i click the "+" and get all the members of the fact class (all my members are public).<br>
<br>my question is, why cant i see the methods of the facts class?<br><br>i want to use a method that receives a parameter and returns an answer, then check that answer in the rule and do something accordingly.<br><br>example:<br>
currently my rule look like<br><br>rule "Rule-04"<br>salience 100<br>activation-group "mygrp"<br>    no-loop true<br>    when<br>        d : myFacts( isOne == "false", isTwo == "true", hasThree == "true")      <br>
<br>    then<br>        System.out.println("Rule 04 activated");<br>        d.someMethodDone();<br><br><br>i want it to be something like:<br><br>    when<br>
        d : myFacts( isOne == "false", isTwo == "true", hasNumber("three") == "true")      <br>
<br>
    then<br>
        System.out.println("Rule 04 activated");<br>
        d.someMethodDone();<br><br>i want hasNumber to be a function i give a parameter too and check it return<br><br>how can this be done?<br><br>Thanks.<br>Nadav.<br></div>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto: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>
<br></blockquote></p>