org.silverpeas.process
Class AbstractProcess<C extends ProcessExecutionContext>
java.lang.Object
org.silverpeas.process.AbstractProcess<C>
- All Implemented Interfaces:
- SilverpeasProcess<C>
- Direct Known Subclasses:
- AbstractDataProcess, AbstractFileProcess
public abstract class AbstractProcess<C extends ProcessExecutionContext>
- extends Object
- implements SilverpeasProcess<C>
The abstract root implementation of SilverpeasProcess
interface where
process
and getProcessType
methods are the only ones that are not
implemented there.
- Author:
- Yohann Chastagnier
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractProcess
public AbstractProcess()
onSuccessful
public void onSuccessful()
throws Exception
- Description copied from interface:
SilverpeasProcess
- Containing treatments which have to be done after a successful execution of process method and
after successful validations.
- Specified by:
onSuccessful
in interface SilverpeasProcess<C extends ProcessExecutionContext>
- Throws:
Exception
onFailure
public void onFailure(ProcessErrorType errorType,
Exception exception)
throws Exception
- Description copied from interface:
SilverpeasProcess
- 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.
- Specified by:
onFailure
in interface SilverpeasProcess<C extends ProcessExecutionContext>
- Throws:
Exception
Copyright © 2016 Silverpeas. All Rights Reserved.