We couldn't load all Actvitity tabs. Refresh the page to try again.
If the problem persists, contact your Jira admin.
Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-12672

In dmn engine rule, I can evaluate decision/table only by passing variables

    • Icon: Feature Request Feature Request
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • None
    • dmn-engine
    • 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

            Loading...
            Uploaded image for project: 'camunda BPM'
            1. camunda BPM
            2. CAM-12672

            In dmn engine rule, I can evaluate decision/table only by passing variables

              • Icon: Feature Request Feature Request
              • Resolution: Won't Fix
              • Icon: L3 - Default L3 - Default
              • None
              • None
              • dmn-engine
              • 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

                        Unassigned Unassigned
                        yana.vasileva Yana Vasileva
                        Votes:
                        0 Vote for this issue
                        Watchers:
                        2 Start watching this issue

                          Created:
                          Updated:
                          Resolved:

                              Unassigned Unassigned
                              yana.vasileva Yana Vasileva
                              Votes:
                              0 Vote for this issue
                              Watchers:
                              2 Start watching this issue

                                Created:
                                Updated:
                                Resolved: