[jboss-user] [jBPM] - Re: Need jbpm 5 examples

Esteban Aliverti do-not-reply at jboss.com
Thu Jan 19 03:30:13 EST 2012

Esteban Aliverti [https://community.jboss.org/people/eaa] created the discussion

"Re: Need jbpm 5 examples"

To view the discussion, visit: https://community.jboss.org/message/647539#647539

In the @Before method of each test, where I create the ksession, I'm attaching 2 loggers to it:

//Console log. Try to analyze it first

This is the responsible of the System.out you saw

I'm also also attaching a File Logger. This logger creates an xml representation of the execution that can be viewed using drools/jbpm eclipse plugin under Audit View (you have to open the generated file) 

//File logger: try to open its output using Audit View in eclipse
File logFile = File.createTempFile("process-output", "");
System.out.println("Log file= "+logFile.getAbsolutePath()+".log");
fileLogger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession,logFile.getAbsolutePath());

If you get stuck please start new dicussion threads  :) 

Best Regards,

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120119/3902f2ef/attachment-0001.html 

More information about the jboss-user mailing list