The following servlet beans and form handlers are used for approving orders.
Find Pending Approvals Droplet Servlet Bean
Returns all approval items for the given approvalType
with a state of PENDING. If no approvalType
is provided, all approvalTypes
are returned.
Class |
|
---|---|
Components |
Parameters: |
Get Total Approvals For State Droplet Servlet Bean
This servlet bean queries the approvals repository and returns the total number of results for a given type of approval.
Class |
|
---|---|
Components |
|
Is Order Pending Approval Droplet Servlet Bean
This servlet bean determines if an order is currently pending approval and returns the approval ID that is associated with the order.
The servlet bean is used on confirmation pages to determine if an order emerged from the submission process in a PENDING approval state. It is also used on the Order View page to determine if “Approve” or “Reject” elements should appear.
Class |
|
---|---|
Components |
Parameters: |
Get Total Order Appeasements Droplet Servlet Bean
This servlet bean determines if an order has any appeasements applied to it, and returns the total number of appeasements if any are found.
Class |
|
---|---|
Components |
Parameters: |
For example:
<dsp:droplet name="/atg/commerce/custsvc/approvals/order/ GetTotalOrderAppeasements"> <dsp:param name="order" value="order
"> <dsp:oparam name="output"> <dsp:valueof param="element
"/> </dsp:oparam> </dsp:droplet>
Get Total Approvals for State Droplet Servlet Bean
Queries the approvals repository and returns the total number of results for a given type of approval.
Class |
|
---|---|
Components |
|
Is Order Adjusted Droplet Servlet Bean
Determines if the order contains any price adjustments.
Class |
|
---|---|
Components |
Parameter: |
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.
Approval Repository Query Form Handler
The ApprovalRepositoryQueryFormHandler
finds approvals of a specified state and type. It handles the search request from the UI and returns a list of search results, as well as handles paging of the search results. This form handler extends the RepositoryQueryTableFormHandler
.
Update Order Approval Customer Email Form Handler
The UpdateOrderApprovalCustomerEmailFormHandler
updates the customer e-mail address on an order approval object.