1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.providers.bpm.jbpm.actions; |
12 | |
|
13 | |
import org.apache.commons.logging.Log; |
14 | |
import org.apache.commons.logging.LogFactory; |
15 | |
import org.jbpm.graph.def.ActionHandler; |
16 | |
import org.jbpm.graph.exe.ExecutionContext; |
17 | |
|
18 | 0 | public abstract class LoggingActionHandler implements ActionHandler |
19 | |
{ |
20 | 0 | protected transient Log logger = LogFactory.getLog(getClass()); |
21 | |
|
22 | |
public void execute(ExecutionContext executionContext) throws Exception |
23 | |
{ |
24 | 0 | if (logger.isDebugEnabled()) |
25 | |
{ |
26 | 0 | String currentNode = "???"; |
27 | 0 | if (executionContext.getNode() != null) |
28 | |
{ |
29 | 0 | currentNode = executionContext.getNode().getFullyQualifiedName(); |
30 | |
} |
31 | 0 | logger.debug("Executing action " + this.getClass().getName() + " from state \"" + currentNode |
32 | |
+ "\""); |
33 | |
} |
34 | 0 | } |
35 | |
} |