Package com.polarion.alm.tracker.model
Interface IWorkflowObject
- All Superinterfaces:
IAdaptable
,IChangeListener
,IHasCustomValues
,IHasValues
,IPObject
,IUniqueObject
- All Known Subinterfaces:
IModule
,ITestRun
,IWithLinkedOslcResources
,IWorkItem
- Since:
- 3.8.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
This field may not be supported, seegetWorkflowSignatures()
.Fields inherited from interface com.polarion.alm.projects.model.IUniqueObject
KEY_ID, KEY_PROJECT
-
Method Summary
Modifier and TypeMethodDescriptioncan()
Returns initial workflow action if it is defined for this workflow.getType()
Returns map of unavailable workflow actions for current state of Work Item.<T extends IWorkflowSignature>
List<T>Returns all workflow signatures in the creation order.<T extends IWorkflowSignature>
IWorkflowSignaturesManager<T>Returns signatures manager that can be used for all signature related tasks.performAction
(int actionId) Performs the given worflow action.void
Resets the workflow so that the Work Item enters the initial status.void
Sets type of the object and resets its workflow, so that the object enters initial workflow state.Methods inherited from interface com.polarion.platform.persistence.model.IAdaptable
adapt
Methods inherited from interface com.polarion.platform.persistence.model.IChangeListener
markChanged
Methods inherited from interface com.polarion.platform.persistence.model.IHasCustomValues
getCustomField, getCustomFieldPrototype, getCustomFieldsList, setCustomField
Methods inherited from interface com.polarion.platform.persistence.model.IPObject
copyTo, createStructureForKey, forget, getContextId, getDataRevision, getDataSvc, getEnumerationOptionForField, getEnumerationTypeForField, getFieldLabel, getFieldType, getIncompatibleCustomField, getIncompatibleCustomFieldPrototype, getIncompatibleCustomFieldsList, getLastRevision, getLocalId, getObjectId, getPrototype, getRevision, getUri, getValue, isModified, isPersisted, isReadOnly, isResolved, isUnresolvable, resolve, save, setEnumerationValue, setValue, update
Methods inherited from interface com.polarion.alm.projects.model.IUniqueObject
getId, getProjectId
-
Field Details
-
KEY_TYPE
- See Also:
-
KEY_STATUS
- See Also:
-
KEY_WORKFLOW_SIGNATURES
This field may not be supported, seegetWorkflowSignatures()
.- Since:
- 3.9.0
- See Also:
-
-
Method Details
-
setType
Sets type of the object and resets its workflow, so that the object enters initial workflow state.Open transaction is required to call this method.
- Parameters:
newType
-
-
getType
-
getStatus
-
getAvailableActions
- Returns:
- The list of available workflow actions to be performed on this
item. Can be empty array, but never
null
.
-
getInitialAction
Returns initial workflow action if it is defined for this workflow. Initial action is always called implicitly by the system, it is made available through this method so that interested clients can check e.g. list of required features.- Returns:
- initial action or
null
- Since:
- 3.3.0
-
performAction
Performs the given worflow action. The action might modify some other objects as well - in such a case the list with the modified objects is returned.This allows client to correctly handle that - e.g. present this list to the user for approval, etc.
- Parameters:
actionId
-- Returns:
- a
List
containing all modifiedIPObject
s expect this work item
-
resetWorkflow
void resetWorkflow()Resets the workflow so that the Work Item enters the initial status. If there is initial workflow action defined, it will be registered and called on commit or before next workflow (whatever comes first).Open transaction is required to call this method.
- Since:
- 3.5.3
-
getTrackerService
- Since:
- 3.6.1
-
getProject
ITrackerProject getProject()- Specified by:
getProject
in interfaceIUniqueObject
- Since:
- 3.8.3
-
can
-
getWorkflowSignaturesManager
@NotNull <T extends IWorkflowSignature> IWorkflowSignaturesManager<T> getWorkflowSignaturesManager()Returns signatures manager that can be used for all signature related tasks.- Throws:
UnsupportedOperationException
- if signatures are not supported for this object type (onIWorkItem
).- Since:
- 3.10.0
-
getWorkflowSignatures
Returns all workflow signatures in the creation order. Usually the clients will use the signatures manager to work with signatures.- Throws:
UnsupportedOperationException
- if signatures are not supported for this object type (onIWorkItem
)- Since:
- 3.10.0
- See Also:
-