Search in sources :

Example 1 with Consequence

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());
}
Also used : BlockStmt(org.drools.javaparser.ast.stmt.BlockStmt) Consequence(org.drools.modelcompiler.builder.generator.Consequence)

Aggregations

BlockStmt (org.drools.javaparser.ast.stmt.BlockStmt)1 Consequence (org.drools.modelcompiler.builder.generator.Consequence)1