Package org.camunda.automator.engine
Class RunScenario
java.lang.Object
org.camunda.automator.engine.RunScenario
This object executes a scenario, in a context. Context is
- the scenario to execute
- the BPMN Engine to access
- the RunParameters
-
Constructor Summary
ConstructorsConstructorDescriptionRunScenario(Scenario scenario, BpmnEngine bpmnEngine, RunParameters runParameters, ServiceAccess serviceAccess) -
Method Summary
Modifier and TypeMethodDescriptionrun only the deployments on the process - test to verify the engine is performedExecute the scenario.Execute the scenario.runVerifications(ScenarioExecution scnExecution) for one execution, run verifications
-
Constructor Details
-
RunScenario
public RunScenario(Scenario scenario, BpmnEngine bpmnEngine, RunParameters runParameters, ServiceAccess serviceAccess) - Parameters:
scenario- scenario to be executedbpmnEngine- engine to connectrunParameters- different parameters to run the scenarioserviceAccess- service access to access all services, this object is created per execution
-
-
Method Details
-
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
run only the deployments on the process - test to verify the engine is performed- Returns:
- result of deployment
-
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
for one execution, run verifications- Parameters:
scnExecution- execution to check- Returns:
- result of execution
-
getScenario
-
getBpmnEngine
-
getRunParameters
-
getServiceAccess
-