Interface IWorkflowSignature
- All Superinterfaces:
IAdaptable
,IChangeListener
,IHasCustomValues
,IHasValues
,IPObject
,IUniqueObject
- All Known Subinterfaces:
IDocumentWorkflowSignature
,ITestRunWorkflowSignature
,IWorkItemWorkflowSignature
Workflow signature represents signature for one transition to a workflow status of the parent object.
If there are multiple transitions to the same workflow status in the history of the parent object,
each is represented by separate workflow signature.
Workflow signature is called closed if the transition to the target workflow
status was already performed or the workflow signature was marked as obsolete.
Workflow signatures for already performed transitions are locked for changes (except for marking as obsolete).
- Since:
- 3.9.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
The current signature state, seeISignatureStateOpt
.static final String
static final String
ID of the target workflow status of the parent workflow object, transition to which is signed by this object.static final String
static final String
static final String
Fields inherited from interface com.polarion.alm.projects.model.IUniqueObject
KEY_ID, KEY_PROJECT
-
Method Summary
Modifier and TypeMethodDescriptionaddSignature
(IUser signer) Adds an invited signature if signature for the user does not exist yet.getLabel()
Returns the workflow signature label.getSignature
(IUser signer) Returns existing signature of the user, ornull
.Returns all signatures.Returns the current signature state, calculates the current state if necessary.The target workflow status of the parent workflow object, transition to which is signed by this object.Revision of the parent object in which the workflow transition was performed, ornull
if the transition was not performed yet.The workflow object to which this workflow signature belongs.boolean
isClosed()
void
removeSignature
(IUser signer) Removes signature of the user, has no effect if there is no such signature.void
Resets all existing signatures to invited status.void
setObsolete
(boolean obsolete) Marks or unmarks this workflow signature as obsolete.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
can, 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, getProject, getProjectId
-
Field Details
-
PROTO
- Since:
- 3.18.2
- See Also:
-
KEY_TARGET_STATUS_ID
ID of the target workflow status of the parent workflow object, transition to which is signed by this object.- See Also:
-
KEY_SIGNATURE_STATE
The current signature state, seeISignatureStateOpt
.- See Also:
-
KEY_TRANSITION_DATA_REVISION
- See Also:
-
KEY_SIGNATURES
- See Also:
-
KEY_WORKFLOW_OBJECT
- See Also:
-
ENUM_ID_SIGNATURE_STATE
- See Also:
-
-
Method Details
-
getWorkflowObject
The workflow object to which this workflow signature belongs. -
getTargetStatus
The target workflow status of the parent workflow object, transition to which is signed by this object. -
getTransitionRevision
Revision of the parent object in which the workflow transition was performed, ornull
if the transition was not performed yet. -
isClosed
boolean isClosed() -
getSignatures
Returns all signatures. Returned list is live, so changes to it are reflected in the workflow signature. -
addSignature
Adds an invited signature if signature for the user does not exist yet. This method should be used also for setting of the signature status - first use this method to get the signature and then set the signature status on it.- Returns:
- added or found signature
-
getSignature
Returns existing signature of the user, ornull
. -
removeSignature
Removes signature of the user, has no effect if there is no such signature. -
resetSignatures
void resetSignatures()Resets all existing signatures to invited status. -
getSignatureState
Returns the current signature state, calculates the current state if necessary. -
setObsolete
void setObsolete(boolean obsolete) Marks or unmarks this workflow signature as obsolete. If obsolete is true, the workflow signature state is changed toISignatureStateOpt.OPT_OBSOLETE
and related verdict comments are resolved. If obsolete is false and the current signature state isISignatureStateOpt.OPT_OBSOLETE
, the signature state is cleared and recalculated. -
getLabel
Returns the workflow signature label.
-