-
Feature Request
-
Resolution: Won't Fix
-
L3 - Default
-
None
-
None
-
None
Provide option in DmnEngineRule to evaluate decision/table only by passing variables. An example follows of current/expected code. That will reduce the amount of code and improve the user experience while writing testing code.
Current:
public class DecisionTest { @Rule public DmnEngineRule dmnEngineRule = new DmnEngineRule(); @Test public void test() { // given // load decision //... VariableMap variables = Variables.createVariables(); // when DmnDecisionResult result = dmnEngine.evaluateDecision(decision, variables); } }
Goal:
public class DecisionTest { @Rule public DmnEngineRule dmnEngineRule = new DmnEngineRule(); @Test public void test() { // given // load decision and // pass the dmn key to the dmnEngineRule //... VariableMap variables = Variables.createVariables(); // when DmnDecisionResult result = dmnEngineRule.evaluateDecision(variables); } }
This is the controller panel for Smart Panels app
- is related to
-
CAM-12670 Provide DecisionResource annotation in the public API
- Closed