Search in sources :

Example 6 with SnippetBuilder

use of org.drools.template.model.SnippetBuilder in project drools by kiegroup.

the class RuleMatrixSheetListener method createConsequence.

private Consequence createConsequence(final String value) {
    final SnippetBuilder snip = new SnippetBuilder(_action);
    final String result = snip.build(value);
    final Consequence consequence = new Consequence();
    consequence.setSnippet(result);
    return consequence;
}
Also used : SnippetBuilder(org.drools.template.model.SnippetBuilder) Consequence(org.drools.template.model.Consequence)

Aggregations

SnippetBuilder (org.drools.template.model.SnippetBuilder)6 Condition (org.drools.template.model.Condition)3 DecisionTableParseException (org.drools.template.parser.DecisionTableParseException)2 Consequence (org.drools.template.model.Consequence)1