use of org.drools.mvelcompiler.ModifyCompiler in project drools by kiegroup.
the class Consequence method rewriteModifyBlock.
private String rewriteModifyBlock(String consequence) {
int modifyPos = StringUtils.indexOfOutOfQuotes(consequence, "modify");
if (modifyPos < 0) {
return consequence;
}
ModifyCompiler modifyCompiler = new ModifyCompiler();
CompiledBlockResult compile = modifyCompiler.compile(addCurlyBracesToBlock(consequence));
return printNode(compile.statementResults());
}
Aggregations