public abstract class AbstractAmetysWorkflow extends com.opensymphony.workflow.AbstractWorkflow
Modifier and Type | Field and Description |
---|---|
protected Map<Long,ReentrantLock> |
_instancesLocks
Reentrant locks for synchronizing access to each instance
|
protected static Logger |
_logger
Logger available to subclasses.
|
protected WorkflowHelper |
_workflowHelper
workflow helper
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractAmetysWorkflow(WorkflowHelper workflowHelper,
com.opensymphony.workflow.WorkflowContext workflowContext)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
doAction(long id,
int actionId,
Map inputs) |
int[] |
getAvailableActions(long id)
Deprecated.
|
int[] |
getAvailableActions(long id,
Map inputs) |
long |
initialize(String workflowName,
int initialActionId,
Map inputs)
Creates a new workflow instance of a particular type of workflow.
|
protected boolean |
transitionWorkflow(com.opensymphony.workflow.spi.WorkflowEntry entry,
List currentSteps,
com.opensymphony.workflow.spi.WorkflowStore store,
com.opensymphony.workflow.loader.WorkflowDescriptor wf,
com.opensymphony.workflow.loader.ActionDescriptor action,
Map transientVars,
Map inputs,
com.opensymphony.module.propertyset.PropertySet ps) |
canInitialize, canInitialize, canInitialize, canModifyEntryState, changeEntryState, checkImplicitFinish, completeEntry, createNewCurrentStep, executeFunction, executeTriggerFunction, 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, verifyInputs
protected Map<Long,ReentrantLock> _instancesLocks
protected WorkflowHelper _workflowHelper
protected AbstractAmetysWorkflow(WorkflowHelper workflowHelper, com.opensymphony.workflow.WorkflowContext workflowContext)
workflowHelper
- The workflow helperworkflowContext
- The workflow contextpublic long initialize(String workflowName, int initialActionId, Map inputs) throws com.opensymphony.workflow.WorkflowException
initialize
in interface com.opensymphony.workflow.Workflow
initialize
in class com.opensymphony.workflow.AbstractWorkflow
workflowName
- the type of the workflow.initialActionId
- the initial action to perform or
Integer.MIN_VALUE
in order to use the first initial action.inputs
- the arguments to transmit to the workflow. Can not be null.com.opensymphony.workflow.WorkflowException
public int[] getAvailableActions(long id, Map inputs)
getAvailableActions
in interface com.opensymphony.workflow.Workflow
getAvailableActions
in class com.opensymphony.workflow.AbstractWorkflow
@Deprecated public int[] getAvailableActions(long id)
getAvailableActions
in interface com.opensymphony.workflow.Workflow
getAvailableActions
in class com.opensymphony.workflow.AbstractWorkflow
public void doAction(long id, int actionId, Map inputs) throws com.opensymphony.workflow.WorkflowException
doAction
in interface com.opensymphony.workflow.Workflow
doAction
in class com.opensymphony.workflow.AbstractWorkflow
com.opensymphony.workflow.WorkflowException
protected boolean transitionWorkflow(com.opensymphony.workflow.spi.WorkflowEntry entry, List currentSteps, com.opensymphony.workflow.spi.WorkflowStore store, com.opensymphony.workflow.loader.WorkflowDescriptor wf, com.opensymphony.workflow.loader.ActionDescriptor action, Map transientVars, Map inputs, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
transitionWorkflow
in class com.opensymphony.workflow.AbstractWorkflow
com.opensymphony.workflow.WorkflowException