Interface WorkflowEventForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, Suppliable
This is the form for creating and updating WorkflowEvents .
Like all OsidForms , various data elements may be set here for use
in the create and update methods in the WorkflowEventAdminSession
. For each data element that may be set, metadata may be examined to
provide display hints or data constraints.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the canceled flag.voidClears the process.voidClears the timestamp.voidClears the work.voidClears the worker.voidClears the working agent.voidcleaStep()Clears the step.Gets the metadata for a canceled.Gets the metadata for a process.Gets the metadata for a step.Gets the metadata for a timestamp.Gets the metadata for a worker.getWorkflowEventFormRecord(Type workflowEventRecordType) Gets theWorkflowEventFormRecordcorresponding to the given workflow event recordType.Gets the metadata for a working agent.Gets the metadata for a work.voidsetCanceled(boolean canceled) Sets the canceled flag.voidsetProcess(Id processId) Sets the process.voidSets the step.voidsetTimestamp(DateTime date) Sets the timestamp.voidSets the work.voidSets the resource.voidsetWorkingAgent(Id agentId) Sets the agent.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidExtensibleForm
getRequiredRecordTypesModifier and TypeMethodDescriptionGets the minimum required record types for successful submission of thisOsidForm.Methods inherited from interface OsidForm
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocaleModifier and TypeMethodDescriptionGets a default locale for the form.Metadata[]Gets a list of metadata for the elements in this form which are not valid.Gets the metadata for the comment corresponding to this form submission.Gets the locales available for this form.Gets text messages corresponding to additional instructions to pass form validation.booleanTests if this form is for an update operation.booleanisValid()Tests if this form is in a valid state for submission.voidsetJournalComment(String comment) Sets a comment.voidSpecifies a language and script type for the form.Methods inherited from interface OsidObjectForm
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypeModifier and TypeMethodDescriptionvoidClears the description.voidClears the display name.voidClears the genus type.Gets the metadata for a description.Gets the metadata for a display name.Gets the metadata for a genus type.voidsetDescription(String description) Sets a description.voidsetDisplayName(String displayName) Sets a display name.voidsetGenusType(Type genusType) Sets a genus.
-
Method Details
-
getTimestampMetadata
Metadata getTimestampMetadata()Gets the metadata for a timestamp.- Returns:
- metadata for the date
- Compliance:
mandatory- This method must be implemented.
-
setTimestamp
Sets the timestamp.- Parameters:
date- the new timestamp- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearTimestamp
void clearTimestamp()Clears the timestamp.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getProcessMetadata
Metadata getProcessMetadata()Gets the metadata for a process.- Returns:
- metadata for the process
- Compliance:
mandatory- This method must be implemented.
-
setProcess
Sets the process.- Parameters:
processId- the new process- Throws:
InvalidArgumentException-processIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-processIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearProcess
void clearProcess()Clears the process.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getWorkerMetadata
Metadata getWorkerMetadata()Gets the metadata for a worker.- Returns:
- metadata for the worker
- Compliance:
mandatory- This method must be implemented.
-
setWorker
Sets the resource.- Parameters:
resourceId- the new worker resource- Throws:
InvalidArgumentException-resourceIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearWorker
void clearWorker()Clears the worker.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getWorkingAgentMetadata
Metadata getWorkingAgentMetadata()Gets the metadata for a working agent.- Returns:
- metadata for the worker
- Compliance:
mandatory- This method must be implemented.
-
setWorkingAgent
Sets the agent.- Parameters:
agentId- the new working agent- Throws:
InvalidArgumentException-agentIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-agentIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearWorkingAgent
void clearWorkingAgent()Clears the working agent.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getWorkMetadata
Metadata getWorkMetadata()Gets the metadata for a work.- Returns:
- metadata for the work
- Compliance:
mandatory- This method must be implemented.
-
setWork
Sets the work.- Parameters:
workId- the new work- Throws:
InvalidArgumentException-workIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-workIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearWork
void clearWork()Clears the work.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCanceledMetadata
Metadata getCanceledMetadata()Gets the metadata for a canceled.- Returns:
- metadata for the canceled
- Compliance:
mandatory- This method must be implemented.
-
setCanceled
void setCanceled(boolean canceled) Sets the canceled flag.- Parameters:
canceled- the new canceled flag- Throws:
InvalidArgumentException-canceledis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
cleaCanceled
void cleaCanceled()Clears the canceled flag.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getStepMetadata
Metadata getStepMetadata()Gets the metadata for a step.- Returns:
- metadata for the step
- Compliance:
mandatory- This method must be implemented.
-
setStep
Sets the step.- Parameters:
stepId- the new step- Throws:
InvalidArgumentException-stepIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-stepIdisnull- Compliance:
mandatory- This method must be implemented.
-
cleaStep
void cleaStep()Clears the step.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventFormRecord
WorkflowEventFormRecord getWorkflowEventFormRecord(Type workflowEventRecordType) throws OperationFailedException Gets theWorkflowEventFormRecordcorresponding to the given workflow event recordType.- Parameters:
workflowEventRecordType- a workflow event record type- Returns:
- the workflow event form record
- Throws:
NullArgumentException-workflowEventRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(workflowEventRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-