I can reproduce this error using Guvnor 5.3.0 Distribution.
1. Create new model and fact type (ex. Nagios)
2. Create new function:
function String NagiosDataFormatter(Nagios nn) {
String formattedMsg = "";
formattedMsg += "\n IP: " + nn.getIp_address();
formattedMsg += "\n Host: " + nn.getHost_alias();
return formattedMsg;
}
3. Create simple rule, so the function is invoked in the consequence:
1. | rule "NagiosFormatterRuleTest"
2. | dialect "mvel"
3. | when
4. | na:Nagios()
5. | then
6. | NagiosDataFormatter(na)
7. | end
4. Validate the rule. Then the following error is thrown:
( 17:52:34,782 ERROR [STDERR] Caused by: [Error: unable to resolve method using strict-mode: CorrelatorSep.NagiosDataFormatter.NagiosDataFormatter(CorrelatorSep.Nagios)]
[Near :
{... NagiosDataFormatter(na); ....}
]
: )