Which Form Handler and Droplet are used to approve or reject an order that is in PENDING_
APPROVAL state?
A.
CommitOrderFormHandler, ApprovalRequiredDroplet
B.
ApprovalFormHandler, ApprovalRequiredDroplet
C.
ApprovalSubFormHandler, ApprovalRequiredDroplet
D.
CommitOrderFormHandler, ProcessApprovalDroplet
Explanation:
* Order Approval Form Handler
The OrderApprovalFormHandler (the atg.commerce.csr.approvals.order class) generates the
order approval within the UI and extends the EnvironmentChangeFormHandler. This form handler
provides handlers for both approving, handleApprove, and rejecting, handleReject, an approval
request. It also contains e-mail templates for approvals and rejections.
* The ApprovalRequiredDroplet servlet bean supports the order approval process by retrieving all
orders requiring approval by a given approver. It 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
ApprovalRequiredDropletorderStatesRequiringApproval property. The order’s state is held by the
property of the order that is specified in the ApprovalRequireDropletorderStatePropertyName
property. The default value is PENDING_APPROVAL.