Package nl.gx.webmanager.cms.workflow
Interface WorkflowActivity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description WorkflowActivityInstance
createInstance(String name)
Deprecated.UseWorkflowService.createWorkflowActivityInstance()
insteadWorkflowAction[]
getActions()
Return the actions that can be performed on this activity.WorkflowActivityState
getActivityState(String state)
Return the Workflow activity stated assigned to this Workflow activity and that matched the given state.WorkflowActivityState[]
getActivityStates()
Return the possible Workflow activity stated assigned to this Workflow activity.String
getName()
The name of the activity.void
setActions(WorkflowAction[] actions)
Sets the actions on thisWorkflowActivity
to theWorkflowAction
objects passed by the actions parameter.void
setActivityStates(WorkflowActivityState[] activityStates)
Sets the activity states on thisWorkflowActivity
to theWorkflowActivityState
objects passed by the activityStates parameter.void
setName(String name)
Sets the name of thisWorkflowActivity
to the value passed by the name parameter.
-
-
-
Method Detail
-
getName
String getName()
The name of the activity.- Returns:
- Name of the activity
-
setName
void setName(String name)
Sets the name of thisWorkflowActivity
to the value passed by the name parameter.- Parameters:
name
- the name which is set on thisWorkflowActivity
-
getActions
WorkflowAction[] getActions()
Return the actions that can be performed on this activity. Only the initiator activity can have only one action.- Returns:
- Array of all workflow actions that can be performed on this activity
-
setActions
void setActions(WorkflowAction[] actions)
Sets the actions on thisWorkflowActivity
to theWorkflowAction
objects passed by the actions parameter.- Parameters:
actions
- theWorkflowActivity
objects to set on thisWorkflowActivity
-
getActivityStates
WorkflowActivityState[] getActivityStates()
Return the possible Workflow activity stated assigned to this Workflow activity.- Returns:
- the possible Workflow activity stated assigned to this Workflow activity
-
setActivityStates
void setActivityStates(WorkflowActivityState[] activityStates)
Sets the activity states on thisWorkflowActivity
to theWorkflowActivityState
objects passed by the activityStates parameter.- Parameters:
activityStates
- theWorkflowActivityState
objects to set on thisWorkflowActivityState
-
getActivityState
WorkflowActivityState getActivityState(String state)
Return the Workflow activity stated assigned to this Workflow activity and that matched the given state.- Parameters:
state
- state of which the Workflow activity should be retrieved- Returns:
- the Workflow activity stated assigned to this Workflow activity and that matched the given state
-
createInstance
@Deprecated WorkflowActivityInstance createInstance(String name)
Deprecated.UseWorkflowService.createWorkflowActivityInstance()
insteadCreate an instance of this Workflow activity, to be assigned to a Worfklow model instance.- Parameters:
name
- name of the activity instance to create- Returns:
- The created Workflow activity instance
-
-