Package nl.gx.webmanager.cms.workflow
Interface WorkflowAction
-
- All Superinterfaces:
Wrapper
public interface WorkflowAction extends Wrapper
This interface represents Workflow actions. A Workflow action is a possible action that an editor can perform in a Workflow model instance. The execution of the action results in a proceeding current activity and state of the Workflow model instance.- Author:
- ivol
-
-
Field Summary
Fields Modifier and Type Field Description static String
STATE_ACTIVE
static String
STATE_COMPLETED
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContentTypeConstraint[]
getContentTypeConstraints()
Get the list of constraints which apply to this action.WorkflowActivity
getNextActivity()
Return the activity that will become the current activity as a result of this action.WorkflowModelState
getState()
Return the state that will become the current state of the Workflow model instance as a result of this action.void
setNextActivity(WorkflowActivity activity)
Sets the next activity of thisWorkflowAction
to the value passed by the activity parameter.void
setState(WorkflowModelState state)
Sets the state of thisWorkflowAction
to the value passed by the state parameter.
-
-
-
Field Detail
-
STATE_ACTIVE
static final String STATE_ACTIVE
- See Also:
- Constant Field Values
-
STATE_COMPLETED
static final String STATE_COMPLETED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNextActivity
WorkflowActivity getNextActivity()
Return the activity that will become the current activity as a result of this action.- Returns:
- The activity that will become the current activity
-
setNextActivity
void setNextActivity(WorkflowActivity activity)
Sets the next activity of thisWorkflowAction
to the value passed by the activity parameter.- Parameters:
activity
- the nextWorkflowActivity
which is set on thisWorkflowAction
-
getState
WorkflowModelState getState()
Return the state that will become the current state of the Workflow model instance as a result of this action.- Returns:
- the state that will become the current state of the Workflow model instance
-
setState
void setState(WorkflowModelState state)
Sets the state of thisWorkflowAction
to the value passed by the state parameter.- Parameters:
state
- theWorkflowModelState
which is set on thisWorkflowAction
-
getContentTypeConstraints
ContentTypeConstraint[] getContentTypeConstraints()
Get the list of constraints which apply to this action.- Returns:
- Read-only array of constraints.
-
-