Search in sources :

Example 1 with Conditional

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

the class ConditionalConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    Conditional cond = (Conditional) parent;
    writeChildrenNode(writer, context, cond.getIf(), IF);
    writeChildrenNode(writer, context, cond.getThen(), THEN);
    writeChildrenNode(writer, context, cond.getElse(), ELSE);
}
Also used : TConditional(org.kie.dmn.model.v1_4.TConditional) Conditional(org.kie.dmn.model.api.Conditional)

Aggregations

Conditional (org.kie.dmn.model.api.Conditional)1 TConditional (org.kie.dmn.model.v1_4.TConditional)1