Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To hook a document execution, you need to define a custom system under development.

 

Code Block
languagejava
public static class CustomSystemUnderDevelopment extends DefaultSystemUnderDevelopment
    {
        public CustomSystemUnderDevelopment( String... params )
        {
           
        }

       public void onStartDocument(Document document)
       {
          //this method is called before GreenPepper execute a document
       }

       public void onEndDocument(Document document)
       {
          //this method is called after GreenPepper has executed the document              
       }
    }

...