use of org.kie.dmn.api.core.ast.DecisionNode in project drools-wb by kiegroup.
the class AbstractDMNTest method init.
protected void init() {
settingsLocal = new Settings();
settingsLocal.setType(ScenarioSimulationModel.Type.DMN);
inputDataNodes = new HashSet<>();
simpleTypeNoCollection = getSimpleNoCollection();
InputDataNode inputDataNodeSimpleNoCollection = getInputDataNode(simpleTypeNoCollection, SIMPLE_INPUT_DATA_NAME_NO_COLLECTION);
inputDataNodes.add(inputDataNodeSimpleNoCollection);
simpleTypeSimpleCollectionOfSimple = getSimpleCollection();
InputDataNode inputDataNodeSimpleCollectionOfSimple = getInputDataNode(simpleTypeSimpleCollectionOfSimple, SIMPLE_INPUT_DATA_NAME_SIMPLE_COLLECTION_OF_SIMPLE);
inputDataNodes.add(inputDataNodeSimpleCollectionOfSimple);
compositeTypeNoCollection = getSingleCompositeWithSimpleCollection();
simpleTypeSimpleCollectionOfComposite = getSimpleCollection(compositeTypeNoCollection);
InputDataNode inputDataNodeSimpleCollectionOfComposite = getInputDataNode(simpleTypeSimpleCollectionOfComposite, SIMPLE_INPUT_DATA_NAME_SIMPLE_COLLECTION_OF_COMPOSITE);
inputDataNodes.add(inputDataNodeSimpleCollectionOfComposite);
compositeTypeCollection = getCompositeCollection();
InputDataNode inputDataNodeCompositeCollection = getInputDataNode(compositeTypeCollection, COMPOSITE_INPUT_DATA_NAME_COLLECTION);
inputDataNodes.add(inputDataNodeCompositeCollection);
decisionNodes = new HashSet<>();
DecisionNode decisionNodeSimpleNoCollection = getDecisionNode(simpleTypeNoCollection, SIMPLE_DECISION_DATA_NAME);
decisionNodes.add(decisionNodeSimpleNoCollection);
DecisionNode decisionNodeCompositeNoCollection = getDecisionNode(compositeTypeNoCollection, COMPOSITE_DECISION_DATA_NAME);
decisionNodes.add(decisionNodeCompositeNoCollection);
setDmnModelLocal("dmn-list.dmn", NAMESPACE, MODEL_NAME);
}
use of org.kie.dmn.api.core.ast.DecisionNode 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;
}
Aggregations