Class RunScenario

java.lang.Object
org.camunda.automator.engine.RunScenario

public class RunScenario extends Object
This object executes a scenario, in a context. Context is - the scenario to execute - the BPMN Engine to access - the RunParameters
  • Constructor Details

    • RunScenario

      public RunScenario(Scenario scenario, BpmnEngine bpmnEngine, RunParameters runParameters, ServiceAccess serviceAccess)
      Parameters:
      scenario - scenario to be executed
      bpmnEngine - engine to connect
      runParameters - different parameters to run the scenario
      serviceAccess - service access to access all services, this object is created per execution
  • Method Details

    • runScenario

      public RunResult runScenario()
      Execute the scenario. A scenario is composed of - deployment - execution (which contains the verifications)

      these steps are controlled by the runParameters

      Returns:
      tue result object
    • runDeployment

      public RunResult runDeployment()
      run only the deployments on the process - test to verify the engine is performed
      Returns:
      result of deployment
    • runExecutions

      public RunResult runExecutions()
      Execute the scenario. Note: this method is multi thread safe. Note: if the execution has verification AND runParameters.execution == true, then the verification is started
      Returns:
      the execution
    • runVerifications

      public RunResult runVerifications(ScenarioExecution scnExecution)
      for one execution, run verifications
      Parameters:
      scnExecution - execution to check
      Returns:
      result of execution
    • getScenario

      public Scenario getScenario()
    • getBpmnEngine

      public BpmnEngine getBpmnEngine()
    • getRunParameters

      public RunParameters getRunParameters()
    • getServiceAccess

      public ServiceAccess getServiceAccess()