Package nl.gx.webmanager.cms.workflow
Interface WorkflowActivityState
-
- All Superinterfaces:
Wrapper
public interface WorkflowActivityState extends Wrapper
This interface represents a Workflow activity instance. A Workflow activity instance represents an instance of a Worklow activity. The instance will have an activity state, indicating the current state of the activity instance within the Workflow model instance.- Author:
- ivol
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
WorkflowActivityState.State
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Permission[]
getPermissions()
Return the RBAC permissions assigned to this Workflow activity state.WorkflowActivityState.State
getState()
Returns the state of thisWorkflowActivityState
.String
getStateName()
Deprecated.UsegetState()
insteadvoid
setPermissions(Permission[] permissions)
Sets thePermission
objects on thisWorkflowActivityState
which are provided when thisWorkflowActivityState
is active.void
setState(WorkflowActivityState.State state)
Sets the state of thisWorkflowActivityState
to theWorkflowActivityState.State
passed by the state parameter.
-
-
-
Field Detail
-
INACTIVE
static final String INACTIVE
Represents the inactive state.- See Also:
- Constant Field Values
-
ACTIVE
static final String ACTIVE
Represents the active state.- See Also:
- Constant Field Values
-
COMPLETED
static final String COMPLETED
Represents the completed state.- See Also:
- Constant Field Values
-
-
Method Detail
-
getPermissions
Permission[] getPermissions()
Return the RBAC permissions assigned to this Workflow activity state.- Returns:
- the RBAC permissions assigned to this Workflow activity state
-
setPermissions
void setPermissions(Permission[] permissions)
Sets thePermission
objects on thisWorkflowActivityState
which are provided when thisWorkflowActivityState
is active.- Parameters:
permissions
- thePermission
objects which are set on thisWorkflowActivityState
-
getStateName
@Deprecated String getStateName()
Deprecated.UsegetState()
insteadReturn the name of this activity state.- Returns:
- Name of the state, one of "inactive", "active" or "completed"
-
getState
WorkflowActivityState.State getState()
Returns the state of thisWorkflowActivityState
.- Returns:
- the state of this
WorkflowActivityState
-
setState
void setState(WorkflowActivityState.State state)
Sets the state of thisWorkflowActivityState
to theWorkflowActivityState.State
passed by the state parameter.- Parameters:
state
- theWorkflowActivityState.State
which is set on thisWorkflowActivityState
-
-