OSID Logo
OSID Specifications
workflow package
Version 3.0.0
Interfaceosid.workflow.ProcessForm
Implementsosid.OsidGovernatorForm
Implemented Byosid.workflow.batch.ProcessBatchForm
Used Byosid.workflow.ProcessAdminSession
Description

This is the form for creating and updating Processes . Like all OsidForms , various data elements may be set here for use in the create and update methods in the ProcessAdminSession . For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetOwnersMetadata
Description

Gets the metadata for the owners.

Returnosid.Metadatametadata for the owners
CompliancemandatoryThis method must be implemented.
MethodsetOwners
Description

Sets the owners.

Parametersosid.id.IdListownerIdsthe new owners
ErrorsINVALID_ARGUMENTownerIds is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTownerIds is null
CompliancemandatoryThis method must be implemented.
MethodclearOwners
Description

Removes the owners.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetEnabledMetadata
Description

Gets the metadata for the enabled flag.

Returnosid.Metadatametadata for the enabled flag
CompliancemandatoryThis method must be implemented.
MethodsetEnabled
Description

Sets the enabled flag.

Parametersbooleanenabledthe new enabled flag
ErrorsINVALID_ARGUMENTenabled is invalid
NO_ACCESSMetadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearEnabled
Description

Removes the enabled flag.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetInitialStepMetadata
Description

Gets the metadata for the initial step.

Returnosid.Metadatametadata for the initial step
CompliancemandatoryThis method must be implemented.
MethodsetInitialStep
Description

Sets the initial step.

Parametersosid.id.IdstepIdthe new initial step
ErrorsINVALID_ARGUMENTstepId is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTstepId is null
CompliancemandatoryThis method must be implemented.
MethodclearInitialStep
Description

Removes the initial step.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetInitialStateMetadata
Description

Gets the metadata for the initial state.

Returnosid.Metadatametadata for the initial state
CompliancemandatoryThis method must be implemented.
MethodsetInitialState
Description

Sets the initial state.

Parametersosid.id.IdstateIdthe new initial state
ErrorsINVALID_ARGUMENTstateId is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTstateId is null
CompliancemandatoryThis method must be implemented.
MethodclearInitialState
Description

Removes the initial state.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetProcessFormRecord
Description

Gets the ProcessFormRecord corresponding to the given process record Type .

Parametersosid.type.TypeprocessRecordTypea process record type
Returnosid.workflow.records.ProcessFormRecordthe process form record
ErrorsNULL_ARGUMENTprocessRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(processRecordType) is false
CompliancemandatoryThis method must be implemented.