public class WorkflowActivities extends BaseManager
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
WorkflowActivity |
createWorkflowActivity(java.lang.String defaultName)
Adds a new activity.
|
void |
deleteWorkflowActivity(WorkflowActivity value)
Delete the given activity.
|
java.util.List<WorkflowActivity> |
getWorkflowActivities()
Returns a list of all contained activities.
|
java.util.List<WorkflowActivity> |
getWorkflowActivities(UserContext userContext)
Returns a list of all contained activities.
|
WorkflowActivity |
getWorkflowActivity(int activityID)
Returns the activity for the given ID.
|
java.util.Set<java.lang.Integer> |
getWorkflowActivityIDs(boolean initialActivitiesOnly)
Returns all available activity IDs of this instance.
|
java.util.Set<java.lang.Integer> |
getWorkflowActivityIDs(int stateID)
Returns all available activity IDs of this instance for the given state id.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public WorkflowActivity createWorkflowActivity(java.lang.String defaultName)
defaultName
- the default name for the new activitypublic WorkflowActivity getWorkflowActivity(int activityID)
activityID
- ID of the activity to getpublic void deleteWorkflowActivity(WorkflowActivity value)
value
- activity to delete.public java.util.List<WorkflowActivity> getWorkflowActivities()
public java.util.List<WorkflowActivity> getWorkflowActivities(UserContext userContext)
userContext
- The user context to only return activities that are allowed to be applied by this user.
Pass null
to return all activities.public java.util.Set<java.lang.Integer> getWorkflowActivityIDs(boolean initialActivitiesOnly)
initialActivitiesOnly
- true
if only initial activities should be returned, otherwise false
public java.util.Set<java.lang.Integer> getWorkflowActivityIDs(int stateID)
stateID
- state id to return the accepted activity IDs forwww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.