Class MemoryProcessExecutorPlugin
- java.lang.Object
-
- io.vertigo.orchestra.plugins.services.execution.memory.MemoryProcessExecutorPlugin
-
- All Implemented Interfaces:
io.vertigo.core.node.component.Activeable,io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Plugin,ProcessExecutorPlugin,ProcessExecutor
public class MemoryProcessExecutorPlugin extends Object implements ProcessExecutorPlugin, io.vertigo.core.node.component.Activeable
Executeur de processus non supervisés.- Author:
- mlaroche
-
-
Constructor Summary
Constructors Constructor Description MemoryProcessExecutorPlugin(Integer workersCount)Constructeur de l'executeur simple local.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendPendingActivityExecution(Long activityExecutionId, String token, ExecutionState state, Optional<String> errorMessageOpt)Termine une execution mise en attente.voidexecute(ProcessDefinition processDefinition, Optional<String> initialParams)Execute un processus.ProcessTypegetHandledProcessType()Retourne le type de processus géré par le pluginvoidsetActivityExecutionPending(Long activityExecutionId, ActivityExecutionWorkspace workspace)Mets une execution en attente.voidstart()voidstop()
-
-
-
Constructor Detail
-
MemoryProcessExecutorPlugin
@Inject public MemoryProcessExecutorPlugin(Integer workersCount)
Constructeur de l'executeur simple local.- Parameters:
workersCount- le nombre de workers du pool
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceio.vertigo.core.node.component.Activeable
-
stop
public void stop()
- Specified by:
stopin interfaceio.vertigo.core.node.component.Activeable
-
execute
public void execute(ProcessDefinition processDefinition, Optional<String> initialParams)
Description copied from interface:ProcessExecutorExecute un processus.- Specified by:
executein interfaceProcessExecutor- Parameters:
processDefinition- le processus à lancerinitialParams- paramètres initiaux supplémentaires
-
getHandledProcessType
public ProcessType getHandledProcessType()
Description copied from interface:ProcessExecutorPluginRetourne le type de processus géré par le plugin- Specified by:
getHandledProcessTypein interfaceProcessExecutorPlugin- Returns:
- le type de processus géré
-
endPendingActivityExecution
public void endPendingActivityExecution(Long activityExecutionId, String token, ExecutionState state, Optional<String> errorMessageOpt)
Description copied from interface:ProcessExecutorTermine une execution mise en attente.- Specified by:
endPendingActivityExecutionin interfaceProcessExecutor- Parameters:
activityExecutionId- L'id de l'execution à terminertoken- Le ticket associé permettant de s'assurer que n'importe qui ne termine pas une activity (seulement un callback)state- L'état futur de l'activité
-
setActivityExecutionPending
public void setActivityExecutionPending(Long activityExecutionId, ActivityExecutionWorkspace workspace)
Description copied from interface:ProcessExecutorMets une execution en attente.- Specified by:
setActivityExecutionPendingin interfaceProcessExecutor- Parameters:
activityExecutionId- L'id de l'execution à mettre en attenteworkspace- Le workspace avant la mise en attente
-
-