Class DbProcessExecutorPlugin
- java.lang.Object
- 
- io.vertigo.orchestra.plugins.services.execution.db.DbProcessExecutorPlugin
 
- 
- All Implemented Interfaces:
- io.vertigo.core.node.component.Activeable,- io.vertigo.core.node.component.CoreComponent,- io.vertigo.core.node.component.Plugin,- io.vertigo.core.node.definition.DefinitionProvider,- io.vertigo.core.node.definition.SimpleDefinitionProvider,- ProcessExecutorPlugin,- ProcessExecutor
 
 public final class DbProcessExecutorPlugin extends Object implements ProcessExecutorPlugin, io.vertigo.core.node.component.Activeable, io.vertigo.core.node.definition.SimpleDefinitionProvider Executeur des processus orchestra sous la forme d'une séquence linéaire d'activités.- Version:
- $Id$
- Author:
- mlaroche.
 
- 
- 
Constructor SummaryConstructors Constructor Description DbProcessExecutorPlugin(ONodeManager nodeManager, VTransactionManager transactionManager, String nodeName, Optional<Integer> workersCountOpt, Optional<Integer> executionPeriodSecondsOpt)Constructeur.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendPendingActivityExecution(Long activityExecutionId, String token, ExecutionState executionState, 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 pluginList<? extends io.vertigo.core.node.definition.Definition>provideDefinitions(io.vertigo.core.node.definition.DefinitionSpace definitionSpace)voidsetActivityExecutionPending(Long activityExecutionId, ActivityExecutionWorkspace workspace)Mets une execution en attente.voidstart()voidstop()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
- 
 
- 
- 
- 
Constructor Detail- 
DbProcessExecutorPlugin@Inject public DbProcessExecutorPlugin(ONodeManager nodeManager, VTransactionManager transactionManager, String nodeName, Optional<Integer> workersCountOpt, Optional<Integer> executionPeriodSecondsOpt) Constructeur.- Parameters:
- nodeManager- le gestionnaire de noeud
- transactionManager- le gestionnaire de transaction
- workersCountOpt- le nombre de worker du noeud (10 by default)
- executionPeriodSecondsOpt- le timer du long-polling (30 seconds by default)
 
 
- 
 - 
Method Detail- 
provideDefinitionspublic List<? extends io.vertigo.core.node.definition.Definition> provideDefinitions(io.vertigo.core.node.definition.DefinitionSpace definitionSpace) - Specified by:
- provideDefinitionsin interface- io.vertigo.core.node.definition.SimpleDefinitionProvider
 
 - 
startpublic void start() - Specified by:
- startin interface- io.vertigo.core.node.component.Activeable
 
 - 
stoppublic void stop() - Specified by:
- stopin interface- io.vertigo.core.node.component.Activeable
 
 - 
getHandledProcessTypepublic ProcessType getHandledProcessType() Retourne le type de processus géré par le plugin- Specified by:
- getHandledProcessTypein interface- ProcessExecutorPlugin
- Returns:
- le type de processus géré
 
 - 
executepublic void execute(ProcessDefinition processDefinition, Optional<String> initialParams) Execute un processus.- Specified by:
- executein interface- ProcessExecutor
- Parameters:
- processDefinition- le processus à lancer
- initialParams- paramètres initiaux supplémentaires
 
 - 
endPendingActivityExecutionpublic void endPendingActivityExecution(Long activityExecutionId, String token, ExecutionState executionState, Optional<String> errorMessageOpt) Termine une execution mise en attente.- Specified by:
- endPendingActivityExecutionin interface- ProcessExecutor
- Parameters:
- activityExecutionId- L'id de l'execution à terminer
- token- Le ticket associé permettant de s'assurer que n'importe qui ne termine pas une activity (seulement un callback)
- executionState- L'état futur de l'activité
 
 - 
setActivityExecutionPendingpublic void setActivityExecutionPending(Long activityExecutionId, ActivityExecutionWorkspace workspace) Mets une execution en attente.- Specified by:
- setActivityExecutionPendingin interface- ProcessExecutor
- Parameters:
- activityExecutionId- L'id de l'execution à mettre en attente
- workspace- Le workspace avant la mise en attente
 
 
- 
 
-