Search in sources :

Example 1 with Conditional

use of org.kie.dmn.trisotech.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, new TNamedExpression(IF, cond.getIf()), IF);
    writeChildrenNode(writer, context, new TNamedExpression(THEN, cond.getThen()), THEN);
    writeChildrenNode(writer, context, new TNamedExpression(ELSE, cond.getElse()), ELSE);
}
Also used : TConditional(org.kie.dmn.trisotech.model.v1_3.TConditional) Conditional(org.kie.dmn.trisotech.model.api.Conditional) TNamedExpression(org.kie.dmn.trisotech.model.v1_3.TNamedExpression)

Aggregations

Conditional (org.kie.dmn.trisotech.model.api.Conditional)1 TConditional (org.kie.dmn.trisotech.model.v1_3.TConditional)1 TNamedExpression (org.kie.dmn.trisotech.model.v1_3.TNamedExpression)1