|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SilverpeasProcess<C extends ProcessExecutionContext>
Interface which has to be implemented by each process (or task in other words) that has to be taken in charge by the Silverpeas Process API.
Method Summary | |
---|---|
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 context,
ProcessSession session)
Containing main treatment of the process. |
Method Detail |
---|
ProcessType getProcessType()
void process(C context, ProcessSession session) throws Exception
Exception
void onSuccessful() throws Exception
Exception
void onFailure(ProcessErrorType errorType, Exception exception) throws Exception
errorType
- exception
-
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |