com.polarion.alm.tracker.model.IWorkflowObject
FIELDS
Modifiers and Type | Name | Description |
---|---|---|
String | KEY_TYPE | |
String | KEY_STATUS | |
String | KEY_WORKFLOW_SIGNATURES | This field may not be supported, see {@link #getWorkflowSignatures()} . |
METHODS
Modifiers and Type | Name | Description |
---|---|---|
void | setType(ITypeOpt) | 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. |
ITypeOpt | getType() | |
IStatusOpt | getStatus() | |
IWorkflowAction[] | getAvailableActions() | |
Map | getUnavailableActions() | Returns map of unavailable workflow actions for current state of Work Item. Keys are IWorkflowActions. Values contains message why the actions is unavailable. |
IWorkflowAction | 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. |
IPObjectList | performAction(int) | 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. |
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. |
ITrackerService | getTrackerService() | |
IWorkflowSignaturesManager<T> | getWorkflowSignaturesManager() | Returns signatures manager that can be used for all signature related tasks. |
List | getWorkflowSignatures() | Returns all workflow signatures in the creation order. Usually the clients will use the signatures manager to work with signatures. |
Back to Index