public abstract class WorkflowEJB extends AbstractWorkflow
configuration, context, log, stateCache
BSF_COL, BSF_LANGUAGE, BSF_ROW, BSF_SCRIPT, BSF_SOURCE, BSH_SCRIPT, CLASS_NAME, EJB_LOCATION, JNDI_LOCATION
Constructor and Description |
---|
WorkflowEJB() |
Modifier and Type | Method and Description |
---|---|
void |
changeEntryState(long id,
int newState)
Modify the state of the specified workflow instance.
|
void |
doAction(long id,
int actionId,
Map inputs)
Perform an action on the specified workflow instance.
|
void |
ejbCreate() |
void |
ejbPostCreate() |
void |
executeTriggerFunction(long id,
int triggerId)
Executes a special trigger-function using the context of the given workflow instance id.
|
long |
initialize(String workflowName,
int initialAction,
Map inputs)
Initializes a workflow so that it can begin processing.
|
void |
setSessionContext(SessionContext context) |
canInitialize, canInitialize, canInitialize, canModifyEntryState, completeEntry, createNewCurrentStep, executeFunction, getAvailableActions, getAvailableActions, getAvailableActionsForStep, getAvailableAutoActions, getAvailableAutoActionsForStep, getConfiguration, getCurrentStep, getCurrentSteps, getEntryState, getHistorySteps, getPersistence, getPersistenceProperties, getPropertySet, getResolver, getSecurityPermissions, getSecurityPermissions, getWorkflowDescriptor, getWorkflowName, getWorkflowNames, isActionAvailable, passesCondition, passesConditions, passesConditions, populateTransientMap, query, query, removeWorkflowDescriptor, saveWorkflowDescriptor, setConfiguration, setResolver, transitionWorkflow, verifyInputs
public void setSessionContext(SessionContext context)
public void changeEntryState(long id, int newState) throws WorkflowException
Workflow
changeEntryState
in interface Workflow
changeEntryState
in class AbstractWorkflow
id
- The workflow instance id.newState
- the new state to change the workflow instance to.
If the new state is com.opensymphony.workflow.spi.WorkflowEntry.KILLED
or com.opensymphony.workflow.spi.WorkflowEntry.COMPLETED
then all current steps are moved to history steps. If the new state isWorkflowException
public void doAction(long id, int actionId, Map inputs) throws WorkflowException
Workflow
doAction
in interface Workflow
doAction
in class AbstractWorkflow
id
- The workflow instance id.actionId
- The action id to perform (action id's are listed in the workflow descriptor).inputs
- The inputs to the workflow instance.InvalidInputException
- if a validator is specified and an input is invalid.WorkflowException
public void ejbCreate()
public void ejbPostCreate() throws CreateException
CreateException
public void executeTriggerFunction(long id, int triggerId) throws WorkflowException
Workflow
executeTriggerFunction
in interface Workflow
executeTriggerFunction
in class AbstractWorkflow
id
- The workflow instance idtriggerId
- The id of the speciail trigger-functionWorkflowException
public long initialize(String workflowName, int initialAction, Map inputs) throws InvalidRoleException, InvalidInputException, StoreException, WorkflowException
Workflow
initialize
in interface Workflow
initialize
in class AbstractWorkflow
workflowName
- The workflow name to create and initialize an instance forinitialAction
- The initial step to start the workflowinputs
- The inputs entered by the end-userInvalidRoleException
- if the user can't start this functionInvalidInputException
- if a validator is specified and an input is invalid.StoreException
WorkflowException
Copyright © 2021 catworkx GmbH. All rights reserved.