Search in sources :

Example 1 with Iterator

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

the class IteratorConverter method writeAttributes.

@Override
protected void writeAttributes(HierarchicalStreamWriter writer, Object parent) {
    super.writeAttributes(writer, parent);
    Iterator e = (Iterator) parent;
    if (e.getId() != null) {
        writer.addAttribute(ITERATOR_VARIABLE, e.getIteratorVariable());
    }
}
Also used : Iterator(org.kie.dmn.model.api.Iterator)

Example 2 with Iterator

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

the class IteratorConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    Iterator i = (Iterator) parent;
    writeChildrenNode(writer, context, i.getIn(), IN);
}
Also used : Iterator(org.kie.dmn.model.api.Iterator)

Aggregations

Iterator (org.kie.dmn.model.api.Iterator)2