Closed 9odes closed 3 years ago
in README.md https://github.com/j-easy/easy-rules#either-in-a-declarative-way-using-annotations
// java method
public MethodExample {
public static void callExampleFunction() {
....
}
}
@Rule(name = "example rule", description = "...")
public class ExamplerRule {
@Condition
public boolean isCond(@Fact("cond") boolean cond) {
return cond;
}
@Action
public void doing() {
// call function
MethodExample.callExampleFunction();
}
}
OK,thanks
Hello, I want to call the Java method in actions and how to do it.