Class 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 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:
        start in interface io.vertigo.core.node.component.Activeable
      • stop

        public void stop()
        Specified by:
        stop in interface io.vertigo.core.node.component.Activeable
      • execute

        public void execute​(ProcessDefinition processDefinition,
                            Optional<String> initialParams)
        Description copied from interface: ProcessExecutor
        Execute un processus.
        Specified by:
        execute in interface ProcessExecutor
        Parameters:
        processDefinition - le processus à lancer
        initialParams - paramètres initiaux supplémentaires
      • endPendingActivityExecution

        public void endPendingActivityExecution​(Long activityExecutionId,
                                                String token,
                                                ExecutionState state,
                                                Optional<String> errorMessageOpt)
        Description copied from interface: ProcessExecutor
        Termine une execution mise en attente.
        Specified by:
        endPendingActivityExecution in 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)
        state - L'état futur de l'activité