Interface ISignaturePolicy<T extends IWorkflowObject>
public interface ISignaturePolicy<T extends IWorkflowObject>
Signature policy determines the overall signature state from a list of signatures.
It is used to check whether a workflow transition (that uses the policy) can be performed
(the transition will be allowed only if the policy verdict is ready),
and to display the overall state for a signature context in the UI.
- Since:
- 3.9.0
-
Method Summary
Modifier and TypeMethodDescriptiongetSignatureState
(ICallContext<T> context, List<ISignature> signatures, IArguments arguments) Returns the overall verdict determined from the individual signatures.Returns message describing the state returned by this policy.
-
Method Details
-
getSignatureState
@NotNull ISignatureStateOpt getSignatureState(@NotNull ICallContext<T> context, @NotNull List<ISignature> signatures, @NotNull IArguments arguments) Returns the overall verdict determined from the individual signatures. Implementations will usually usecontext.getTarget().getProject().getSignatureStateEnum()
to obtain the state enumeration options.- Parameters:
context
- context of the executionsignatures
- signatures to evaluatearguments
- policy arguments from configuration - not supported yet
-
getStateMessage
Returns message describing the state returned by this policy.
-