JBPM 6 - 2.3 - Debugging Processes
Jump to navigation
Jump to search
JBPM 6 - 2.3 - Debugging Processes
Breakpoints
- current state of your running processes can be inspected and visualized during the execution.
- currently breakpoints cannot be put on the nodes within a process directly
- breakpoints can be put inside any Java code:
- code that is invoking the engine
- code invoked by the engine
- listeners
- rules (than part)
Debug views
- The process instances view
- shows all running process instances (and their state)
- shows the current state of a process instance
- The audit view
- shows the audit log
- The global data view
- Working memory view (facts)
- Agenda view (activated rules)
The process instances view
- Open 04_Debuging project
- Windows / Show View / Other / Drools / Process Instances
- Put a breakpoint after ksession.startProcess line
- Press F11 (Debug as JUnit Test)
- Switch to debug perspective
- In Variables window click on ksession
- In Process Instances windows, click on ksession insance
- Look at Process Instance windows to see where the process "hanged"
The process instance view and persistance
- This kind of debuging will not work with pressistance
- Please make sure you will turn persistance off by setting super(true,false)
Audit View
- Open 04_Deubgging project
- Run ProcessTestAudit.java
- Open the Audit view
- Open mylogfile file