Debugging Bonita – Tips and Tricks

Debugging Bonita – Tips and Tricks

To see the Bonita Engine Log for debugging issues:

  • Use Cygwin (a version of a unix shell in windows) http://cygwin.com/install.html
  • use the tail program with this line of code
     tail /cygdrive/c/BOS-5.9/studio/workspace/.metadata/engine.log --lines=300 --follow
     

Insert an HTML widget for debugging

  • In the pool header – I have created a global map called “configMap” and there is an item ‘debug’
  • insert HTML widget into any page and have it shown conditionally upon configMap[‘debug’] having a true value

Writing to the Bonita Log


import org.slf4j.Logger;

import org.slf4j.LoggerFactory;
 Logger LOGGER = LoggerFactory.getLogger(this.getClass());
 LOGGER.error("Your String Here");
 

Debugging on the Server

Here is what I do know … there is hope and things are NOT the same as on a development  computer or situation

  • The debug output from System.out.printn from Java DOES go into 1 of 3 logs (will edit this when I get paths)
  • The output from the logging routine above goes to another log (will edit this when I get paths)
  • The output from the server hosting things like Tomcat goes to a 3rd log (will edit this when I get paths)
ELB Solutions.com Inc.
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.