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

support configuration of DmnEngine - DmnDecisionTableEvaluationEvent

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Open
    • Priority: L3 - Default
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: spring-boot
    • Labels:
      None

      Description

      see https://forum.camunda.org/t/is-there-a-dmn-listener-equivalent-to-the-activity-listener/3815/3

      DefaultDmnEngineConfiguration dmnEngineConfiguration = (DefaultDmnEngineConfiguration)
                    DmnEngineConfiguration.createDefaultDmnEngineConfiguration();
      
      dmnEngineConfiguration.customPostDecisionTableEvaluationListeners(Collections.singletonList(new DmnDecisionTableEvaluationListener()
          {
      
              @Override
              public void notify(DmnDecisionTableEvaluationEvent event)
              {
                  Map<String, TypedValue> inputVars = event.getInputs().stream().collect(Collectors.toMap(DmnEvaluatedInput::getName, DmnEvaluatedInput::getValue));
                  // do something
              }
          }));
      
      config.setDmnEngineConfiguration(dmnEngineConfiguration);
      

      let's support this directly so it's enough to provide Beans of that interface.

      Copied from https://github.com/camunda/camunda-bpm-spring-boot-starter/issues/263

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            svetlana.dorokhova Svetlana Dorokhova
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: