Created
March 19, 2014 12:42
-
-
Save Rikkola/9640881 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rule "tt" | |
dialect "mvel" | |
when | |
B( var : a) | |
then | |
var.sum( 0, 0 ); | |
end |
public class A {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer sum(Integer x, Integer y) {
return x + y;
}
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unable to Analyse Expression var.sum( 0, 0 );: [Error: unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.sum(java.lang.Integer, java.lang.Integer)] [Near : {... var.sum( 0, 0 ); ....}] ^ [Line: 5, Column: 0]