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(a)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...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users