Use the ApprovalRequiredDroplet
servlet bean to retrieve all orders requiring approval by a given approver. ApprovalRequiredDroplet
queries the order repository and returns all orders that meet the following two criteria:
The order’s
authorizedApproverIds
property contains the approver’s ID.The state of the order requires approval, meaning that the state is defined in the
ApprovalRequiredDroplet
orderStatesRequiringApproval
property. The order’s state is held by the property of the order that is specified in theApprovalRequireDroplet
orderStatePropertyName
property. The default value isPENDING_APPROVAL
.
See the ApprovalRequiredDroplet entry in Appendix A: Core Commerce Servlet Beans for additional information.