Skip to content

Instantly share code, notes, and snippets.

@Rikkola
Created March 19, 2014 12:42
Show Gist options
  • Save Rikkola/9640881 to your computer and use it in GitHub Desktop.
Save Rikkola/9640881 to your computer and use it in GitHub Desktop.
rule "tt"
dialect "mvel"
when
B( var : a)
then
var.sum( 0, 0 );
end
@Rikkola
Copy link
Author

Rikkola commented Mar 19, 2014

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]

@Rikkola
Copy link
Author

Rikkola commented Mar 19, 2014

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