Class CamundaExecutor

java.lang.Object
org.openwms.tms.routing.spi.CamundaExecutor
All Implemented Interfaces:
ProgramExecutor

@Profile("!FLOWABLE") @Component class CamundaExecutor extends Object implements ProgramExecutor
A CamundaExecutor delegates to Camunda for program execution.
Author:
Heiko Scherrer
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • runtimeService

      private final org.camunda.bpm.engine.RuntimeService runtimeService
    • repositoryService

      private final org.camunda.bpm.engine.RepositoryService repositoryService
  • Constructor Details

    • CamundaExecutor

      CamundaExecutor(org.camunda.bpm.engine.RuntimeService runtimeService, org.camunda.bpm.engine.RepositoryService repositoryService)
  • Method Details

    • execute

      public Optional<ProgramResult> execute(Action program, Map<String,Object> runtimeVariables)
      Execute the Action also called program with the given input parameters runtimeVariables.
      Specified by:
      execute in interface ProgramExecutor
      Parameters:
      program - The program to execute
      runtimeVariables - A map of input values, passed to the program
      Returns:
      The program result