Search in sources :

Example 6 with RuleAnnotationClause

use of org.kie.dmn.model.api.RuleAnnotationClause in project drools by kiegroup.

the class DecisionTableConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    DecisionTable dt = (DecisionTable) parent;
    for (InputClause i : dt.getInput()) {
        writeChildrenNode(writer, context, i, INPUT);
    }
    for (OutputClause o : dt.getOutput()) {
        writeChildrenNode(writer, context, o, OUTPUT);
    }
    for (RuleAnnotationClause a : dt.getAnnotation()) {
        writeChildrenNode(writer, context, a, ANNOTATION);
    }
    for (DecisionRule r : dt.getRule()) {
        writeChildrenNode(writer, context, r, RULE);
    }
}
Also used : OutputClause(org.kie.dmn.model.api.OutputClause) DecisionTable(org.kie.dmn.model.api.DecisionTable) TDecisionTable(org.kie.dmn.model.v1_4.TDecisionTable) RuleAnnotationClause(org.kie.dmn.model.api.RuleAnnotationClause) InputClause(org.kie.dmn.model.api.InputClause) DecisionRule(org.kie.dmn.model.api.DecisionRule)

Aggregations

RuleAnnotationClause (org.kie.dmn.model.api.RuleAnnotationClause)6 DecisionRule (org.kie.dmn.model.api.DecisionRule)3 DecisionTable (org.kie.dmn.model.api.DecisionTable)3 InputClause (org.kie.dmn.model.api.InputClause)3 OutputClause (org.kie.dmn.model.api.OutputClause)3 TDecisionTable (org.kie.dmn.model.v1_2.TDecisionTable)1 TRuleAnnotationClause (org.kie.dmn.model.v1_2.TRuleAnnotationClause)1 TDecisionTable (org.kie.dmn.model.v1_3.TDecisionTable)1 TRuleAnnotationClause (org.kie.dmn.model.v1_3.TRuleAnnotationClause)1 TDecisionTable (org.kie.dmn.model.v1_4.TDecisionTable)1 TRuleAnnotationClause (org.kie.dmn.model.v1_4.TRuleAnnotationClause)1