org.jboss.soa.esb.actions.jbpm
Class BaseActionHandler

java.lang.Object
  extended by org.jboss.soa.esb.actions.jbpm.BaseActionHandler
All Implemented Interfaces:
java.io.Serializable, org.jbpm.graph.def.ActionHandler

public class BaseActionHandler
extends java.lang.Object
implements org.jbpm.graph.def.ActionHandler

Use to send messages to ESB services from jBPM applications.

Assumptions:
Message payload is in the context instance in a context variable.
Context variables "esbCategoryName" and "esbServiceName" will be supplied at runtime.

The name of the context variable that contains the user object to include in the message payload is rendered by the getContentVariableName() method so it can be changed just by extending this class and overriding that method.
This action handler will by default (whenever possible) include the process name , version, processInstance id and token ID

Author:
schifest@heuristica.com.ar
See Also:
Serialized Form

Field Summary
 java.lang.String esbCategoryName
           
 java.lang.String esbServiceName
           
 
Constructor Summary
BaseActionHandler()
           
 
Method Summary
 void execute(org.jbpm.graph.exe.ExecutionContext context)
           
 java.lang.String getContentVariableName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

esbCategoryName

public java.lang.String esbCategoryName

esbServiceName

public java.lang.String esbServiceName
Constructor Detail

BaseActionHandler

public BaseActionHandler()
Method Detail

getContentVariableName

public java.lang.String getContentVariableName()

execute

public void execute(org.jbpm.graph.exe.ExecutionContext context)
             throws java.lang.Exception
Specified by:
execute in interface org.jbpm.graph.def.ActionHandler
Throws:
java.lang.Exception