Intercept an ATG pipeline.

ATG pipeline allows developers to write modular code and inject the same in an execution path based on the result from another processor in pipeline chain. Nucleus component /atg/commerce/PipelineManager implement the commerce pipeline loading, execution and reloading logic. Commerce pipeline is defined in an xml file located in /B2CCommerce/config/atg/commerce/commercepipeline.xml. What is a pipeline? Pipeline is [...]
Continue reading…

 

How to write ATG RQL includes query?

Recently I had to write an ATG Repository Query (RQL) to load collection using “IN” query. I found the ATG API documents are not good enough to tell the story clearly. Below given example load all employees with give ids. The important API to understand is QueryBuilder.createIncludesQuery(QueryExpression valueExpression, QueryExpression propertyExpression); You would have noticed that [...]
Continue reading…

 

How to write contains/suggestion/match query using ATG RQL?

There are times when you may have to write contains query to support a suggestion drop-down or standard search functionality. ATG Object Oriented Query Language (RQL) supports contains query with the help of simple RQL API. QueryBuilder.createPatternMatchQuery(QueryExpression, QueryExpression, Integer) would help you fire a contains query against your relational data store.

Continue reading…

 

Write a custom droplet in ATG.

Droplets/ATG Servlet Beans are one of the most important out of the box components provided by ATG. Droplet is nothing but a Servlet, Droplets are mainly used to abstract out the business logic in server side code. Droplet helps the developer to separate the presentation code from the business logic code. You may write your [...]
Continue reading…