<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>