com.opensymphony.workflow.ejb
Class EJBWorkflow

java.lang.Object
  |
  +--com.opensymphony.workflow.ejb.EJBWorkflow
All Implemented Interfaces:
Workflow

public class EJBWorkflow
extends java.lang.Object
implements Workflow


Constructor Summary
EJBWorkflow()
           
EJBWorkflow(java.lang.String location)
           
 
Method Summary
 boolean canInitialize(java.lang.String workflowName, int initialState)
           
 long createEntry(java.lang.String workflowName)
          Create a new workflow entry
 void doAction(long id, int actionId, java.util.Map inputs)
           
 void executeTriggerFunction(long id, int triggerId)
           
 int[] getActionableSteps(java.lang.String workflowName)
           
 java.lang.String getActionName(long id, int actionId)
           
 int[] getAvailableActions(long id)
           
 HistoryStep getCurrentStatus(long id)
           
 WorkflowHistory getHistory(long id)
           
 com.opensymphony.module.propertyset.PropertySet getPropertySet(long id)
           
 java.util.List getSecurityPermissions(long id)
           
 java.lang.String getStepName(long id, int stepId)
           
 void initialize(long id, int initialState, java.util.Map inputs)
           
 boolean isInitialized(long id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBWorkflow

public EJBWorkflow(java.lang.String location)
            throws javax.ejb.CreateException,
                   java.rmi.RemoteException

EJBWorkflow

public EJBWorkflow()
            throws javax.ejb.CreateException,
                   java.rmi.RemoteException
Method Detail

createEntry

public long createEntry(java.lang.String workflowName)
Description copied from interface: Workflow
Create a new workflow entry
Specified by:
createEntry in interface Workflow
Following copied from interface: com.opensymphony.workflow.Workflow
Parameters:
workflowName - The name of the XML file for this workflow
Returns:
The id of the new workflow

canInitialize

public boolean canInitialize(java.lang.String workflowName,
                             int initialState)
Specified by:
canInitialize in interface Workflow

initialize

public void initialize(long id,
                       int initialState,
                       java.util.Map inputs)
                throws InvalidRoleException,
                       InvalidInputException
Specified by:
initialize in interface Workflow

isInitialized

public boolean isInitialized(long id)
Specified by:
isInitialized in interface Workflow

getAvailableActions

public int[] getAvailableActions(long id)
Specified by:
getAvailableActions in interface Workflow

doAction

public void doAction(long id,
                     int actionId,
                     java.util.Map inputs)
              throws InvalidInputException
Specified by:
doAction in interface Workflow

getCurrentStatus

public HistoryStep getCurrentStatus(long id)
Specified by:
getCurrentStatus in interface Workflow

getHistory

public WorkflowHistory getHistory(long id)
Specified by:
getHistory in interface Workflow

getSecurityPermissions

public java.util.List getSecurityPermissions(long id)
Specified by:
getSecurityPermissions in interface Workflow

getActionableSteps

public int[] getActionableSteps(java.lang.String workflowName)
Specified by:
getActionableSteps in interface Workflow

getActionName

public java.lang.String getActionName(long id,
                                      int actionId)
Specified by:
getActionName in interface Workflow

getStepName

public java.lang.String getStepName(long id,
                                    int stepId)
Specified by:
getStepName in interface Workflow

getPropertySet

public com.opensymphony.module.propertyset.PropertySet getPropertySet(long id)
Specified by:
getPropertySet in interface Workflow

executeTriggerFunction

public void executeTriggerFunction(long id,
                                   int triggerId)
Specified by:
executeTriggerFunction in interface Workflow

See www.opensymphony.com for more information.