Search in sources :

Example 11 with ContextEntry

use of org.kie.dmn.model.v1_1.ContextEntry in project drools by kiegroup.

the class ContextEntryConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    ContextEntry ce = (ContextEntry) parent;
    if (ce.getVariable() != null)
        writeChildrenNode(writer, context, ce.getVariable(), VARIABLE);
    writeChildrenNode(writer, context, ce.getExpression(), MarshallingUtils.defineExpressionNodeName(ce.getExpression()));
}
Also used : TContextEntry(org.kie.dmn.model.v1_1.TContextEntry) ContextEntry(org.kie.dmn.model.api.ContextEntry)

Aggregations

ContextEntry (org.kie.workbench.common.dmn.api.definition.v1_1.ContextEntry)7 Context (org.kie.workbench.common.dmn.api.definition.v1_1.Context)6 InformationItem (org.kie.workbench.common.dmn.api.definition.v1_1.InformationItem)5 LiteralExpression (org.kie.workbench.common.dmn.api.definition.v1_1.LiteralExpression)4 Name (org.kie.workbench.common.dmn.api.property.dmn.Name)3 Optional (java.util.Optional)2 QName (javax.xml.namespace.QName)2 XStream (com.thoughtworks.xstream.XStream)1 MarshallingContext (com.thoughtworks.xstream.converters.MarshallingContext)1 TypeHierarchyPermission (com.thoughtworks.xstream.security.TypeHierarchyPermission)1 ArrayList (java.util.ArrayList)1 Collections (java.util.Collections)1 List (java.util.List)1 Collectors (java.util.stream.Collectors)1 Collectors.toList (java.util.stream.Collectors.toList)1 Before (org.junit.Before)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