Class WorkflowProvider.AmetysObjectWorkflow
- java.lang.Object
-
- com.opensymphony.workflow.AbstractWorkflow
-
- org.ametys.plugins.workflow.AbstractAmetysWorkflow
-
- org.ametys.plugins.workflow.support.WorkflowProvider.AmetysObjectWorkflow
-
- All Implemented Interfaces:
com.opensymphony.workflow.Workflow
- Enclosing class:
- WorkflowProvider
public static class WorkflowProvider.AmetysObjectWorkflow extends AbstractAmetysWorkflow
Local workflow to an ametys object
-
-
Field Summary
Fields Modifier and Type Field Description protected AmetysObjectWorkflowStore
_workflowStore
The ametys object-
Fields inherited from class org.ametys.plugins.workflow.AbstractAmetysWorkflow
_instancesLocks, _logger, _workflowHelper
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A extends WorkflowAwareAmetysObject>
AgetAmetysObject()
Ametys object gettervoid
removeWorkflow(long wId)
Delete a workflow instance-
Methods inherited from class org.ametys.plugins.workflow.AbstractAmetysWorkflow
doAction, getAvailableActions, getAvailableActions, initialize, transitionWorkflow
-
Methods inherited from class com.opensymphony.workflow.AbstractWorkflow
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
-
-
-
-
Field Detail
-
_workflowStore
protected AmetysObjectWorkflowStore _workflowStore
The ametys object
-
-
Method Detail
-
getAmetysObject
public <A extends WorkflowAwareAmetysObject> A getAmetysObject()
Ametys object getter- Type Parameters:
A
- A WorkflowAwareAmetysObject class- Returns:
- The ametys object
-
removeWorkflow
public void removeWorkflow(long wId) throws com.opensymphony.workflow.WorkflowException
Delete a workflow instance- Parameters:
wId
- The id of workflow instance- Throws:
com.opensymphony.workflow.WorkflowException
- if failed to delete workflow instance
-
-