Hi,
Even I am struck in the same kind of problem.
"RuleBaseTask failed: [Error: unable to resolve method using strict-mode:
com.nph.radar.drools.UpdateQuery.updateQuery(com.nph.radar.rule.operands.Query,
com.nph.radar.rule.operands.AOCCRuleKnobConfig, java.lang.String,
org.apache.log4j.Logger)]"
[Near : {... updateQuery($query, $aoccRuleK ....}]
This is the error I am getting while compiling drl file.
I am calling a method in the when clause.
The same code works fine in eclipse. Error is when I am compiling using ant
script.
Eclipse is doing some settings, that even I got to do in ant script.
I am using drools 5.5.0 and eclipse indigo.
Code :
function String updateQuery(Query querie, AOCCRuleKnobConfig
aoccRuleKnobConfig, String advPgmExclude, Logger log){
}
rule "ExecuteQuery"
//include attributes such as "salience" here...
no-loop true
salience 9
when
//conditions
$aoccRuleKnobConfig : AOCCRuleKnobConfig($commissionThreshold :
commissionThreshold)
$query : Query(name == "Account-Eligibility-Criteria" , $statement :
statement)
Query(name == "AdvisoryProgramExclusion" , $advPgmExclude :
statement)
$order : Order() from
hibernateSession.createSQLQuery(updateQuery($query, $aoccRuleKnobConfig,
$advPgmExclude, log))
.addScalar("id",LongType.INSTANCE)
.addScalar("totalCommission", BigDecimalType.INSTANCE)
.setResultTransformer(Transformers.aliasToBean(com.nph.radar.rule.operands.Order.class)).list();
then
end
Thanks in advance.
--
View this message in context:
http://drools.46999.n3.nabble.com/unable-to-resolve-method-using-strict-m...
Sent from the Drools: User forum mailing list archive at
Nabble.com.