Search in sources :

Example 21 with UnaryTests

use of org.kie.workbench.common.dmn.api.definition.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.workbench.common.dmn.api.definition.v1_1.UnaryTests)14 LiteralExpression (org.kie.workbench.common.dmn.api.definition.v1_1.LiteralExpression)10 Description (org.kie.workbench.common.dmn.api.property.dmn.Description)8 DecisionRule (org.kie.workbench.common.dmn.api.definition.v1_1.DecisionRule)7 UnaryTests (org.kie.dmn.model.v1_1.UnaryTests)6 GraphCommandExecutionContext (org.kie.workbench.common.stunner.core.graph.command.GraphCommandExecutionContext)5 RuleViolation (org.kie.workbench.common.stunner.core.rule.RuleViolation)5 InputClause (org.kie.workbench.common.dmn.api.definition.v1_1.InputClause)4 Id (org.kie.workbench.common.dmn.api.property.dmn.Id)4 AbstractGraphCommand (org.kie.workbench.common.stunner.core.graph.command.impl.AbstractGraphCommand)4 DecisionTable (org.kie.workbench.common.dmn.api.definition.v1_1.DecisionTable)3 OutputClause (org.kie.workbench.common.dmn.api.definition.v1_1.OutputClause)3 ArrayList (java.util.ArrayList)2 List (java.util.List)2 Optional (java.util.Optional)2 Collectors (java.util.stream.Collectors)2 Before (org.junit.Before)2 DMNType (org.kie.dmn.api.core.DMNType)2 BaseDMNTypeImpl (org.kie.dmn.core.impl.BaseDMNTypeImpl)2 UnaryTest (org.kie.dmn.feel.runtime.UnaryTest)2