[jboss-jira] [JBoss JIRA] (DROOLS-468) Decision tables: system property -Ddrools.decisiontable.outputGeneratedDrl=true outputs the generated DRL to the logger

Geoffrey De Smet (JIRA) issues at jboss.org
Wed Apr 16 06:02:33 EDT 2014


    [ https://issues.jboss.org/browse/DROOLS-468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12962227#comment-12962227 ] 

Geoffrey De Smet commented on DROOLS-468:
-----------------------------------------

Alternative implementation way: Don't depend on a system property, but just do it always if decisiontables is on TRACE logging. This is probably better.

if (logger.isTraceEnabled) {
  String s = drlObject.convertToString(); // get the generated DRL in a String
  logger.trace("The generated DRL is: {}", s);
}

                
> Decision tables: system property -Ddrools.decisiontable.outputGeneratedDrl=true outputs the generated DRL to the logger
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-468
>                 URL: https://issues.jboss.org/browse/DROOLS-468
>             Project: Drools
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 6.1.0.Beta2
>            Reporter: Geoffrey De Smet
>            Assignee: Michael Anstis
>
> Great for during development. Also document that in the decision tables chapter.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list