Interface ProcessManagement
-
- All Known Implementing Classes:
DefaultProcessManagement
public interface ProcessManagement
Interface representing services that provide execution of one or several processes (tasks in other words) in one time. User data and component instance id have to be passed at each call. The different steps of execution of the chaining tasks are the followings :- Step 1 : initializing a session and a file handler both shared by all processes
- Step 2 : executing the 'process' method of each process of the chain
- Step 3 : applying global validations on output of the step 1
- Step 4 : executing the 'onSuccessful' method of each process of the chain
- Step 5 : committing on file system all files handled (if any) by processes
- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <C extends ProcessExecutionContext>
voidexecute(SilverpeasProcess<C> process, C processExecutionContext)
Executing one process with an execution context<C extends ProcessExecutionContext>
voidexecute(ProcessList<C> processes, C processExecutionContext)
Executing several processes with a shared execution context
-
-
-
Method Detail
-
execute
<C extends ProcessExecutionContext> void execute(SilverpeasProcess<C> process, C processExecutionContext) throws Exception
Executing one process with an execution context- Parameters:
process
-processExecutionContext
-- Throws:
Exception
-
execute
<C extends ProcessExecutionContext> void execute(ProcessList<C> processes, C processExecutionContext) throws Exception
Executing several processes with a shared execution context- Parameters:
processes
-processExecutionContext
-- Throws:
Exception
-
-