Search in sources :

Example 1 with Binding

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

the class InvocationConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    Invocation i = (Invocation) parent;
    if (i.getExpression() != null)
        writeChildrenNode(writer, context, i.getExpression(), MarshallingUtils.defineExpressionNodeName(i.getExpression()));
    for (Binding b : i.getBinding()) {
        writeChildrenNode(writer, context, b, BINDING);
    }
}
Also used : Binding(org.kie.dmn.model.api.Binding) Invocation(org.kie.dmn.model.api.Invocation) TInvocation(org.kie.dmn.model.v1_1.TInvocation)

Example 2 with Binding

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

the class BindingConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    Binding b = (Binding) parent;
    writeChildrenNode(writer, context, b.getParameter(), PARAMETER);
    if (b.getExpression() != null)
        writeChildrenNode(writer, context, b.getExpression(), MarshallingUtils.defineExpressionNodeName(b.getExpression()));
}
Also used : Binding(org.kie.dmn.model.api.Binding) TBinding(org.kie.dmn.model.v1_2.TBinding)

Example 3 with Binding

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

the class BindingConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    Binding b = (Binding) parent;
    writeChildrenNode(writer, context, b.getParameter(), PARAMETER);
    if (b.getExpression() != null)
        writeChildrenNode(writer, context, b.getExpression(), MarshallingUtils.defineExpressionNodeName(xstream, b.getExpression()));
}
Also used : Binding(org.kie.dmn.model.api.Binding) TBinding(org.kie.dmn.model.v1_3.TBinding)

Example 4 with Binding

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

the class InvocationConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    Invocation i = (Invocation) parent;
    if (i.getExpression() != null)
        writeChildrenNode(writer, context, i.getExpression(), MarshallingUtils.defineExpressionNodeName(xstream, i.getExpression()));
    for (Binding b : i.getBinding()) {
        writeChildrenNode(writer, context, b, BINDING);
    }
}
Also used : Binding(org.kie.dmn.model.api.Binding) Invocation(org.kie.dmn.model.api.Invocation) TInvocation(org.kie.dmn.model.v1_4.TInvocation)

Example 5 with Binding

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

the class InvocationConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    Invocation i = (Invocation) parent;
    if (i.getExpression() != null)
        writeChildrenNode(writer, context, i.getExpression(), MarshallingUtils.defineExpressionNodeName(xstream, i.getExpression()));
    for (Binding b : i.getBinding()) {
        writeChildrenNode(writer, context, b, BINDING);
    }
}
Also used : Binding(org.kie.dmn.model.api.Binding) Invocation(org.kie.dmn.model.api.Invocation) TInvocation(org.kie.dmn.model.v1_3.TInvocation)

Aggregations

Binding (org.kie.dmn.model.api.Binding)10 Invocation (org.kie.dmn.model.api.Invocation)6 DMNNode (org.kie.dmn.api.core.ast.DMNNode)2 DMNInvocationEvaluator (org.kie.dmn.core.ast.DMNInvocationEvaluator)2 ArrayList (java.util.ArrayList)1 Collections (java.util.Collections)1 List (java.util.List)1 Entry (java.util.Map.Entry)1 Objects (java.util.Objects)1 Optional (java.util.Optional)1 UUID (java.util.UUID)1 Collectors (java.util.stream.Collectors)1 Collectors.toList (java.util.stream.Collectors.toList)1 QName (javax.xml.namespace.QName)1 Resource (org.kie.api.io.Resource)1 DMNMessage (org.kie.dmn.api.core.DMNMessage)1 DMNType (org.kie.dmn.api.core.DMNType)1 BusinessKnowledgeModelNode (org.kie.dmn.api.core.ast.BusinessKnowledgeModelNode)1 DecisionNode (org.kie.dmn.api.core.ast.DecisionNode)1 DMNExpressionEvaluator (org.kie.dmn.core.api.DMNExpressionEvaluator)1