Class ApprovalFlowRejectActionImpl
java.lang.Object
com.commercetools.api.models.approval_flow.ApprovalFlowRejectActionImpl
- All Implemented Interfaces:
ApprovalFlowRejectAction
,ApprovalFlowUpdateAction
,io.vrap.rmf.base.client.ModelBase
public class ApprovalFlowRejectActionImpl
extends Object
implements ApprovalFlowRejectAction, io.vrap.rmf.base.client.ModelBase
This update action allows an Associate to reject an Approval Flow, setting its status to Rejected
. The process takes into account all Associate Roles held by the Associate, aligning with the matched Approval Rules and their respective approver hierarchies. Even a single rejection in the process will result in the rejection of the entire Approval Flow.
An Associate is eligible to reject only if their roles are within tiers of the Approval Rule hierarchy that are yet to be rejected. An Associate may alter a prior approval into a rejection.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.approval_flow.ApprovalFlowRejectAction
REJECT
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.approval_flow.ApprovalFlowRejectAction
withApprovalFlowRejectAction
Methods inherited from interface com.commercetools.api.models.approval_flow.ApprovalFlowUpdateAction
withApprovalFlowUpdateAction
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
ApprovalFlowRejectActionImpl
public ApprovalFlowRejectActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceApprovalFlowUpdateAction
- Returns:
- action
-
getReason
The reason for the rejection of the Approval Flow.
- Specified by:
getReason
in interfaceApprovalFlowRejectAction
- Returns:
- reason
-
setReason
Description copied from interface:ApprovalFlowRejectAction
The reason for the rejection of the Approval Flow.
- Specified by:
setReason
in interfaceApprovalFlowRejectAction
- Parameters:
reason
- value to be set
-
equals
-
hashCode
public int hashCode()
-