1
2
3
4
5
6
7
8
9
10
11 package org.mule.transport.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 public abstract class LoggingActionHandler implements ActionHandler
19 {
20 protected transient Log logger = LogFactory.getLog(getClass());
21
22 public void execute(ExecutionContext executionContext) throws Exception
23 {
24 if (logger.isDebugEnabled())
25 {
26 String currentNode = "???";
27 if (executionContext.getNode() != null)
28 {
29 currentNode = executionContext.getNode().getFullyQualifiedName();
30 }
31 logger.debug("Executing action " + this.getClass().getName() + " from state \"" + currentNode
32 + "\"");
33 }
34 }
35 }