-
1. Re: Need jbpm 5 examples
eaa Jan 17, 2012 6:56 AM (in response to sanket.srimany)Here you can find some simple examples using, among other things, ksession.signalEvent(): https://github.com/esteban-aliverti/JBPM-Samples
Best Regards,
-
2. Re: Need jbpm 5 examples
sanket.srimany Jan 19, 2012 2:40 AM (in response to eaa)Thanks for the quick reply Esteban. Will look forward to your answers when I get stuck again.
BTW one more thing when I was running your examples I was getting a lot of output in the console like:
Before node entered...
After node exited...
etc.
Searched a lot but couldn't find any sysout statements that might be generating them. I made my own process in a seperate project and it did not show those output, only the desired ones.
Could you provide an explanation to this??
Thanks again..
-
3. Re: Need jbpm 5 examples
eaa Jan 19, 2012 3:30 AM (in response to sanket.srimany)1 of 1 people found this helpfulIn 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
KnowledgeRuntimeLoggerFactory.newConsoleLogger(ksession);
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,
-
4. Re: Need jbpm 5 examples
sanket.srimany Jan 19, 2012 3:45 AM (in response to eaa)Thanks a lot that solved my problem, I overlooked ConsoleLogger in the first place
I'll definitely start new threads when i get stuck..