List<DmnDecisionResultEntries>. Whereas the DmnDecisionResultEntries implements the interface Map<String, Object>.
This allows you to use common List or Map asserts.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
public class DecisionTest {
@Rule
public DmnEngineRule dmnEngineRule = new DmnEngineRule();
@Test
public void test() {
DmnEngine dmnEngine = dmnEngineRule.getDmnEngine();
// load DMN file
InputStream inputStream = ...;
//create and add variables
VariableMap variables = Variables.createVariables();
DmnDecision decision = dmnEngine.parseDecision("decision", inputStream);
DmnDecisionResult result = dmnEngine.evaluateDecision(decision, variables);
// assert the result
// ...
}
}
public class DecisionTest {
@Rule
public DmnEngineRule dmnEngineRule = new DmnEngineRule(createCustomConfiguration());
public DmnEngineConfiguration createCustomConfiguration() {
// create and return custom configuration
return ...;
}
@Test
public void test() {
DmnEngine customDmnEngine = dmnEngineRule.getDmnEngine();
// ...
}
}
List<DmnDecisionResultEntries>. Whereas the DmnDecisionResultEntries implements the interface Map<String, Object>.
This allows you to use common List or Map asserts.