Package org.opencastproject.workflow.api
Class WorkflowInstance
java.lang.Object
org.opencastproject.workflow.api.WorkflowInstance
Entity object for storing workflows in persistence storage. Workflow ID is stored as primary key, DUBLIN_CORE field
is used to store serialized Dublin core and ACCESS_CONTROL field is used to store information about access control
rules.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected List<WorkflowOperationInstance> protected String -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor without any import.WorkflowInstance(long id, WorkflowInstance.WorkflowState state, String template, String title, String description, String creatorName, String organizationId, Date dateCreated, Date dateCompleted, MediaPackage mediaPackage, List<WorkflowOperationInstance> operations, Map<String, String> configurations, String mediaPackageId, String seriesId) WorkflowInstance(WorkflowDefinition def, MediaPackage mediaPackage, User creator, Organization organization, Map<String, String> configuration) Constructs a new workflow instance from the given definition, mediapackage, and optional parent workflow ID and properties. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidextend(WorkflowDefinition workflowDefinition) getConfiguration(String key) Returns the workflow operation that is currently active or next to be executed.longgetId()getState()getTitle()inthashCode()voidinsert(WorkflowDefinition workflowDefinition, WorkflowOperationInstance after) booleanisActive()voidvoidsetConfiguration(String key, String value) voidsetCreatorName(String creatorName) voidsetDateCompleted(Date dateCompleted) voidsetDateCreated(Date dateCreated) voidsetDescription(String description) voidsetId(long workflowId) voidsetMediaPackage(MediaPackage mediaPackage) final voidsetOperations(List<WorkflowOperationInstance> workflowOperationInstanceList) Sets the workflow operations on this workflow instancevoidsetOrganizationId(String organizationId) voidvoidsetTemplate(String template) voidtoString()
-
Field Details
-
operations
-
configurations
-
mediaPackageId
-
seriesId
-
-
Constructor Details
-
WorkflowInstance
public WorkflowInstance()Default constructor without any import. -
WorkflowInstance
public WorkflowInstance(WorkflowDefinition def, MediaPackage mediaPackage, User creator, Organization organization, Map<String, String> configuration) Constructs a new workflow instance from the given definition, mediapackage, and optional parent workflow ID and properties. -
WorkflowInstance
public WorkflowInstance(long id, WorkflowInstance.WorkflowState state, String template, String title, String description, String creatorName, String organizationId, Date dateCreated, Date dateCompleted, MediaPackage mediaPackage, List<WorkflowOperationInstance> operations, Map<String, String> configurations, String mediaPackageId, String seriesId)
-
-
Method Details
-
getId
public long getId() -
setId
public void setId(long workflowId) -
getState
-
setState
-
getTemplate
-
setTemplate
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getCreatorName
-
setCreatorName
-
getOrganizationId
-
setOrganizationId
-
getDateCreated
-
setDateCreated
-
getDateCompleted
-
setDateCompleted
-
getMediaPackage
-
setMediaPackage
-
isActive
public boolean isActive() -
getOperations
- See Also:
-
setOperations
Sets the workflow operations on this workflow instance- Parameters:
workflowOperationInstanceList- List of operations to set.
-
getCurrentOperation
Returns the workflow operation that is currently active or next to be executed.- Returns:
- the current operation
-
getConfigurations
-
getConfiguration
- See Also:
-
getConfigurationKeys
- See Also:
-
removeConfiguration
- See Also:
-
setConfiguration
- See Also:
-
hashCode
public int hashCode() -
equals
-
toString
-
extend
-
insert
-