Enum Class RebateAgreementStatus
- All Implemented Interfaces:
Serializable,Comparable<RebateAgreementStatus>,Constable
The platform sets the status when the Rebate Agreement goes through its approval workflow, when a user revokes
it, and when a revision of it is approved. A new agreement is DRAFT. Approval makes it
APPROVED. An approved agreement becomes REVOKED when a user revokes it. When a revision of an
agreement is approved, the agreement becomes SUPERSEDED if its approval workflow was approved (or needed no
approval), and INVALIDATED otherwise.
Each Rebate Record and Rebate Record Group keeps a copy of the status of its agreement in the
agreementStatus field, next to its own status (RebateRecordStatus). The platform does not check
whether the two statuses fit together. The Rebate Record logic decides which combinations are valid.
Example, select the Rebate Records of approved agreements:
import net.pricefx.common.api.RebateAgreementStatus
def q = api.queryApi()
def t = q.tables().rebateRecords(17)
return q.source(t, [t.uniqueName(), t.agreementStatus()],
t.agreementStatus().equal(RebateAgreementStatus.APPROVED))
.stream { it.collect { it } }
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe approval workflow approved the agreement, or the workflow had no approval steps.No longer used.The agreement is new or not approved yet.A revision of the agreement was approved while the approval workflow of this agreement was not approved.No longer used.A user revoked the agreement.A revision of the agreement was approved while the approval workflow of this agreement was approved (or needed no approval). -
Method Summary
Modifier and TypeMethodDescriptionstatic RebateAgreementStatusReturns the enum constant of this class with the specified name.static RebateAgreementStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DRAFT
The agreement is new or not approved yet. It keeps this status while it is submitted for approval, and returns to it when the approval is withdrawn or denied. -
APPROVED
The approval workflow approved the agreement, or the workflow had no approval steps. An agreement also returns to this status when a revocation is undone. Only an approved agreement can be signed. -
OPEN
No longer used. The platform does not set this status. -
CLOSED
No longer used. The platform does not set this status. -
REVOKED
A user revoked the agreement. Only anAPPROVEDagreement, or one in the unusedOPENstatus, can be revoked. Every linked Rebate Record Group changes toRebateRecordStatus.REVOKED. The linked Rebate Records that are not approved change toRebateRecordStatus.REVOKED; approved records keep their status. -
SUPERSEDED
A revision of the agreement was approved while the approval workflow of this agreement was approved (or needed no approval). The status of the agreement itself is not checked, so aREVOKEDagreement can also becomeSUPERSEDED. The linked Rebate Records and Rebate Record Groups that are not approved change toRebateRecordStatus.INVALIDATED. -
INVALIDATED
A revision of the agreement was approved while the approval workflow of this agreement was not approved. The pending approval workflow of this agreement is cancelled. The linked Rebate Records and Rebate Record Groups that are not approved change toRebateRecordStatus.INVALIDATED.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-