ATG pipelines
Post on 13-Dec-2014
1127 Views
Preview:
DESCRIPTION
Transcript
ATG PipelinesKate Soglaeva
Agenda
ODAF Servlet Pipeline
OCommerce pipelines
DAF Servlet Pipeline
PageFilterO PageFilter starts the DAF servlet
pipeline by calling DynamoHandler
startRequestServletName
AuthenticationServletO provides authentication using the
Basic HTTP authentication mechanism
O DEMO1. Servlet
ProfileRequestServlet
creates an instance of the atg/userprofiling/Profile
create a cookie containing the Profile ID of the current guest user
Auto-logs in
maintain persistent information: persistentAnonymousProfiles=true
CachePreventionServlet
pResponse.setHeader("Pragma", "no-cache");pResponse.addDateHeader("Expires", 0L);pResponse.setHeader("Cache-Control", "no-cache");pResponse.setHeader("Cache-Control", "no-store");
Inserting Servlets in the Pipeline
Steps to create pipeline servlet
Add the servlet to /atg/dynamo/servlet/Initial.initialServices
Set the new servlet’s nextServlet property
Reset the previous servlet’s nextServlet property
Define global scope component
Extend atg.servlet.pipeline.PipelineableServletImpl
PipelinebleServlet
InsertableServlet
DEMO
How to use?
1. Disable unnecessary servlets2. Add new servlets if required
Ex. Reprice order functionality
Commerce pipelines
Commerce Pipelines
/atg/commerce/order/OrderTools
/atg/commerce/order/OrderManager
public void updateOrder(Order pOrder)
/atg/commerce/PipelineManager
runProcess("updateOrder", map)
orderTools
pipelineManager
definitionFile
/atg/commerce/commercepipeline.xml
LoadOrder Pipeline Chain
OOrderManager.loadOrder()
O loadOrderObject
O loadPriceInfoObjectsForOrder
UpdateOrder Pipeline Chain:
O OrderManager.updateOrder(O updateOrderObjectO updateCommerceItemObjectsO updateShippingGroupObjectsO updatePaymentGroupObjectsO updateRelationshipObjectsO updatePriceInfoObjectsO saveManualAdjustments
ProcessOrder Pipeline Chain
O OrderManager.processOrder()O checkForExpiredPromotionsO removeEmptyShippingGroupsO removeEmptyPaymentGroupsO moveUsedPromotionsauthorizePayment
O addOrderToRepositoryO sendPromotionUsedMessageO sendFulfillmentMessage
RepriceOrder Pipeline Chain
O CartModifierFormHandler. handleRepriceOrder
O RepriceOrderDroplet
O priceOrderTotal
Questions?
top related