[rules-users] Setting strictTyping/strongTyping modes

Wolfgang Laun wolfgang.laun at gmail.com
Fri Mar 23 03:39:50 EDT 2012


I have raised a JIRA concerning the problems with functions and dialect MVEL.

However: It is not possible to use MVEL in DRL functions.

-W

On 22/03/2012, barnesjd <barnesjd+nabble at gmail.com> wrote:
> Any ideas?  I have the same issue.  That is, the parser believes the
> functions I declare are part of the KnowledgeHelper class instead of the
> rule set.  Hence it cannot be found:
>
> /
> KnowledgeBuilder has errors...
> Unable to Analyse Expression m = Pattern.compile("(?s)(?i).*?(\\S+) rounds,
> each for time.*?").matcher($b.text);
>       m.find();
>       count = this.englishToInt(m.group(1).toLowerCase());
>       $b.scoreTemplate = BattleScoreTemplate.forMultiple("TIME",
> "battleScore.time.multi.label", count);
>       drools.update($b);:
> [Error: unable to resolve method using strict-mode:
> org.drools.spi.KnowledgeHelper.englishToInt(java.lang.String)]
> [Near : {... count = this.englishToInt(m.group(1).toLowe ....}]/
>                           ^
>
>
> Joe
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Setting-strictTyping-strongTyping-modes-tp3846477p3849858.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list