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:

ApprovalRequiredDroplet takes the following input parameters:

ApprovalRequiredDroplet sets the following output parameters:

ApprovalRequiredDroplet renders the following open parameters (oparams):

Note: The ApprovalRequiredDroplet servlet bean has a security feature that allows the current user, the approver, to view only the orders of customers for whom he or she is allowed to approve orders. This feature is enabled by default. To disable the feature, set the enableSecurity property to false.

The following JSP example retrieves from the repository the orders requiring approval by the current user, an approver, and lists each order’s repository ID on the page.

<dsp:droplet name="ApprovalRequiredDroplet">
 <dsp:param bean="/atg/userprofiling/Profile.repositoryId" name="approverid"/>
 <dsp:param value="0" name="startIndex"/>
 <dsp:param value="10" name="numOrders"/>
 <dsp:oparam name="output">
    <dsp:droplet name="ForEach">
       <dsp:param param="result" name="array"/>
       <dsp:param value="order" name="elementName"/>
       <dsp:oparam name="output">
          <dsp:valueof param="order.repositoryId"/><br>
       </dsp:oparam>
       <dsp:oparam name="error">
          <dsp:valueof param="errorMsg"/><br>
       </dsp:oparam>
    </dsp:droplet>
 </dsp:oparam>
</dsp:droplet>
 
loading table of contents...