0

I need help in RHPAM Business Central.

Anybody knows how to add any print statements or logs in DMN's for debugging DMN flow?

jps
  • 20,041
  • 15
  • 75
  • 79
Mohd Asif Ahmed
  • 1,880
  • 2
  • 15
  • 29

1 Answers1

0

You can define your own DMNRuntimeEventListener.

The listener is usually wired in Drools library using: https://docs.drools.org/8.33.0.Final/drools-docs/docs-website/drools/DMN/index.html#dmn-properties-ref_dmn-models:~:text=org.kie.dmn.runtime.listeners.%24LISTENER_NAME

e.g.: with a configuration such as:

-Dorg.kie.dmn.runtime.listeners.mylistener=org.acme.MyDMNListener

or alternatively with analogous configuration in kmodule.xml

<kmodule xmlns="http://www.drools.org/xsd/kmodule">
  <configuration>
    <property key="org.kie.dmn.runtime.listeners.mylistener" value="org.acme.MyDMNListener"/>
  </configuration>
</kmodule>

This latter option, is the one you might preference on RHPAM Business Central.

You might find helpful this tutorial: https://www.youtube.com/watch?v=WzstCC3Df0Q

tarilabs
  • 2,178
  • 2
  • 15
  • 23