org.jboss.soa.esb.services.jbpm.actions
Class BpmProcessor

java.lang.Object
  extended by org.jboss.soa.esb.services.jbpm.actions.BpmProcessor
All Implemented Interfaces:
ActionLifecycle

public class BpmProcessor
extends java.lang.Object
implements ActionLifecycle

Processes a single jBPM command. Part of the message content will be taken from constructor time configuration (from the action configuration XML)

Author:
schifest@heuristica.com.ar, Kurt Stam, Daniel Bevenius

Field Summary
protected  ConfigTree configTree
           
protected  MessageFacade messageFacade
           
 
Constructor Summary
BpmProcessor(ConfigTree configTree)
           
 
Method Summary
 void destroy()
          Destroy the action instance.
 void initialise()
          Initialise the action instance.
 Message process(Message message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageFacade

protected MessageFacade messageFacade

configTree

protected ConfigTree configTree
Constructor Detail

BpmProcessor

public BpmProcessor(ConfigTree configTree)
             throws ConfigurationException
Throws:
ConfigurationException
Method Detail

destroy

public void destroy()
             throws ActionLifecycleException
Description copied from interface: ActionLifecycle
Destroy the action instance.

This method is called prior to the release of the action instance. All resources associated with this action instance should be released as the instance will no longer be used.

Specified by:
destroy in interface ActionLifecycle
Throws:
ActionLifecycleException

initialise

public void initialise()
                throws ActionLifecycleException
Description copied from interface: ActionLifecycle
Initialise the action instance.

This method is called after the action instance has been instantiated so that configuration options can be validated.

Specified by:
initialise in interface ActionLifecycle
Throws:
ActionLifecycleException - for errors during initialisation.

process

public Message process(Message message)
                throws ConfigurationException
Throws:
ConfigurationException