Interface SilverpeasProcess<C extends ProcessExecutionContext>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ProcessType getProcessType()
      Gets the process type
      void onFailure​(ProcessErrorType errorType, Exception exception)
      This method is called when exception is generated during a execution of Silverpeas Processes chain and if the process method of the task have been executed.
      void onSuccessful()
      Containing treatments which have to be done after a successful execution of process method and after successful validations.
      void process​(C processExecutionContext, ProcessSession session)
      Containing main treatment of the process.
    • Method Detail

      • getProcessType

        ProcessType getProcessType()
        Gets the process type
        Returns:
      • onSuccessful

        void onSuccessful()
                   throws Exception
        Containing treatments which have to be done after a successful execution of process method and after successful validations.
        Throws:
        Exception
      • onFailure

        void onFailure​(ProcessErrorType errorType,
                       Exception exception)
                throws Exception
        This method is called when exception is generated during a execution of Silverpeas Processes chain and if the process method of the task have been executed.
        Parameters:
        errorType -
        exception -
        Throws:
        Exception