Basic things in Customizing Pipeline

Pipeline definition files define pipeline chains.

1.You can create a processor by implementing the interface
   atg.service.pipeline.PipelineProcessor,
   implement the runprocess() method,returning a status code(int).

eg:
  public class ProcApproveOrder implements PipelineProcessor {
          public int runProcess(Object pParam, PipelineResult
                                                     pResult)
                     throws Exception {
             ........
              return CONTINUE_CHAIN_EXECUTION;
          }
  }
   After adding the required functionality,return the status
   code,anything other than the return value  0,will tell the
   PipeLineManager to execute the next processor in the chain.

2. Create a nucleus component for your Processor (
   AprroveOrder.properties)
   eg:
   $class=x.x.x.x..ProcApproveOrder
   $scope=global

3. Modify the ---pipeline.xml file.

   Also see the ATG PipelineRegistry

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...