Documente Academic
Documente Profesional
Documente Cultură
Page 1 of 1
OUROWNJAVA.COM
Core Java
ATG
Endeca
Solr
Spring
JBoss
TDD
MongoDB
UML
Certification
Other
Subscribe
What is a pipeline?
and Handler.
Pipeline is a collection of processors which executes sequentially. You can decide the branch to execute based
BESTSELLERS
Buy Now
PipeLine manager is responsible load the pipeline definition xml and initialize the pipeline chains. Below given
Like
ourownjava.com @ourownjava
website designers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.ourownjava.atg.pipeline;
/**
* @author ourownjava.com
*/
import atg.nucleus.logging.ApplicationLoggingImpl;
import atg.service.pipeline.PipelineProcessor;
public class ProcCheckInventory extends ApplicationLoggingImpl implements
PipelineProcessor {
public int[] getRetCodes() {
return new int{1,2};
}
public int runProcess(final Object pParam, final PipelineResult pResult)
throws Exception {
// check inventory and return the status accordingly
return 1;
}
}
2.Identify the correct location to inject the new processor class in pipeline chain.
In this example we will inject new processor class as the second processor in the updateOrder chain.
#ProcCheckInventory.properties
#/info/atgblog/inventory/processor/ProcCheckInventory
$class=/info/atgblog/inventory/processor/ProcCheckInventory
$scope=glboal
5.Restart your ATG application server. You are done. You have added pipeline link in the commerce pipeline.
Alternatively commerce pipeline can be edited using acc pipeline editor.
Related Posts
ATG Targeting Servlets/Droplets.
User registration page in ATG using DSPs and Handler.
ATG Generic Session Manager/Session Tracking.
ATG Composite Repository.
ATG Droplet Static Design.
Like this:
Be the first to like this.
Tags: ATG Pipeline, ATG Pipeline Customization, Customize ATG pipeline, intercept an ATG pipeline
LEAVE A REPLY
CATEGORIES
ATG
CONTACT
Certification
Core Java
CONNECT
Eclipse
Endeca
Maven
MongoDB
Solr
Spring
Validation
JBoss
TDD
Other
UML
Version Control
Windows
http://ourownjava.com/atg/intercept-an-atg-pipeline/
by Sanju Thomas
Back to Top
1/9/2014