org.silverpeas.process.management
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 :

If an exception is thrown during step 2, 3 or 4, then 'onFailure" method is called on each Silverpeas process whose 'process' method has been called and finally all manipulated files (if any) are not committed on file system .

Author:
Yohann Chastagnier

Method Summary
<C extends ProcessExecutionContext>
void
execute(ProcessList<C> processes, C processExecutionContext)
          Executing several processes with a shared execution context
<C extends ProcessExecutionContext>
void
execute(SilverpeasProcess<C> process, C processExecutionContext)
          Executing one process with an 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


Copyright © 2016 Silverpeas. All Rights Reserved.