Search in sources :

Example 6 with UnaryTests

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

the class DecisionRuleConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    DecisionRule dr = (DecisionRule) parent;
    for (UnaryTests ie : dr.getInputEntry()) {
        writeChildrenNode(writer, context, ie, INPUT_ENTRY);
    }
    for (LiteralExpression oe : dr.getOutputEntry()) {
        writeChildrenNode(writer, context, oe, OUTPUT_ENTRY);
    }
}
Also used : LiteralExpression(org.kie.dmn.model.v1_1.LiteralExpression) UnaryTests(org.kie.dmn.model.v1_1.UnaryTests) DecisionRule(org.kie.dmn.model.v1_1.DecisionRule)

Aggregations

UnaryTests (org.kie.dmn.model.v1_1.UnaryTests)6 DMNType (org.kie.dmn.api.core.DMNType)2 BaseDMNTypeImpl (org.kie.dmn.core.impl.BaseDMNTypeImpl)2 UnaryTest (org.kie.dmn.feel.runtime.UnaryTest)2 ArrayList (java.util.ArrayList)1 Collections (java.util.Collections)1 List (java.util.List)1 Optional (java.util.Optional)1 Collectors (java.util.stream.Collectors)1 Collectors.toList (java.util.stream.Collectors.toList)1 QName (javax.xml.namespace.QName)1 DMNMessage (org.kie.dmn.api.core.DMNMessage)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 EvaluatorResult (org.kie.dmn.core.api.EvaluatorResult)1 DMNBaseNode (org.kie.dmn.core.ast.DMNBaseNode)1 DMNContextEvaluator (org.kie.dmn.core.ast.DMNContextEvaluator)1 DMNDTExpressionEvaluator (org.kie.dmn.core.ast.DMNDTExpressionEvaluator)1 DMNFunctionDefinitionEvaluator (org.kie.dmn.core.ast.DMNFunctionDefinitionEvaluator)1