use of org.drools.modelcompiler.builder.generator.Consequence in project drools by kiegroup.
the class NamedConsequenceVisitor method onDSL.
private MethodCallExpr onDSL(NamedConsequenceDescr namedConsequence) {
String namedConsequenceString = context.getNamedConsequences().get(namedConsequence.getName());
BlockStmt ruleVariablesBlock = new BlockStmt();
createVariables(context.getKbuilder(), ruleVariablesBlock, packageModel, context);
return new Consequence(context).createCall(null, namedConsequenceString, ruleVariablesBlock, namedConsequence.isBreaking());
}
Aggregations