com.opensymphony.workflow.util
Class EJBInvoker

java.lang.Object
  |
  +--com.opensymphony.workflow.util.EJBInvoker
All Implemented Interfaces:
FunctionProvider

public class EJBInvoker
extends java.lang.Object
implements FunctionProvider

Generic EJB Invoker function. This function is used to invoke an EJB listener in a step. The EJB must implement WorkflowListener if it's a remote session bean, or WorkflowLocalListener if it's a local session bean.
It accepts a number of arguments, these are:

Note that only one of ejb-home or ejb-local-home can be specified. Also, please note that the entire set of properties will be passed through to the constructor for InitialContext, meaning that if you need to use an InintialContextFactory other than the default one, you are free to include arguments that will do so.

Version:
$Revision: 1.8 $ Date: Apr 6, 2002 Time: 11:48:14 PM
Author:
Hani Suleiman

Constructor Summary
EJBInvoker()
           
 
Method Summary
 void execute(java.util.Map inputs, java.util.Map properties, java.util.Map variables)
          Execute this function
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBInvoker

public EJBInvoker()
Method Detail

execute

public void execute(java.util.Map inputs,
                    java.util.Map properties,
                    java.util.Map variables)
Description copied from interface: FunctionProvider
Execute this function
Specified by:
execute in interface FunctionProvider
Following copied from interface: com.opensymphony.workflow.FunctionProvider
Parameters:
inputs - Workflow inputs
properties - The properties for this function invocation. Properties are created from arg nested elements within the xml, an arg element takes in a name attribute which is the properties key, and the CDATA text contents of the element map to the property value.
variables - The global, persistent variables that are associated with the current instance of the workflow. Any change made to this map will be seen on the next function call in the workflow lifetime. There are two special variable names: entry (object type: WorkflowEntry) and context (object type: WorkflowContext). These are always available in the variable map, no matter what. Also, any variable set as a register (see: Register), will also be available in the variable map, no matter what.

See www.opensymphony.com for more information.