Search in sources :

Example 21 with DecisionNodeImpl

use of org.kie.dmn.core.ast.DecisionNodeImpl in project drools-wb by kiegroup.

the class AbstractDMNTest method getDecisionNode.

protected DecisionNode getDecisionNode(DMNType dmnType, String name) {
    TDecision decision = new TDecision();
    decision.setName(name);
    DecisionNode toReturn = new DecisionNodeImpl(decision, dmnType);
    return toReturn;
}
Also used : TDecision(org.kie.dmn.model.v1_2.TDecision) DecisionNode(org.kie.dmn.api.core.ast.DecisionNode) DecisionNodeImpl(org.kie.dmn.core.ast.DecisionNodeImpl)

Aggregations

DecisionNodeImpl (org.kie.dmn.core.ast.DecisionNodeImpl)21 DMNModelImpl (org.kie.dmn.core.impl.DMNModelImpl)9 Test (org.junit.Test)8 DMNResult (org.kie.dmn.api.core.DMNResult)8 DMNRuntime (org.kie.dmn.api.core.DMNRuntime)8 Definitions (org.kie.dmn.model.api.Definitions)8 TDefinitions (org.kie.dmn.model.v1_1.TDefinitions)8 DecisionNode (org.kie.dmn.api.core.ast.DecisionNode)6 DMNNode (org.kie.dmn.api.core.ast.DMNNode)4 BusinessKnowledgeModelNode (org.kie.dmn.api.core.ast.BusinessKnowledgeModelNode)3 InputDataNode (org.kie.dmn.api.core.ast.InputDataNode)3 BusinessKnowledgeModelNodeImpl (org.kie.dmn.core.ast.BusinessKnowledgeModelNodeImpl)3 ArrayList (java.util.ArrayList)2 HashSet (java.util.HashSet)2 LinkedHashSet (java.util.LinkedHashSet)2 DMNMessage (org.kie.dmn.api.core.DMNMessage)2 DMNType (org.kie.dmn.api.core.DMNType)2 DecisionServiceNode (org.kie.dmn.api.core.ast.DecisionServiceNode)2 DMNBaseNode (org.kie.dmn.core.ast.DMNBaseNode)2 DecisionServiceNodeImpl (org.kie.dmn.core.ast.DecisionServiceNodeImpl)2