Package org.camunda.bpm.scenario
Class Scenario
- java.lang.Object
-
- org.camunda.bpm.scenario.Scenario
-
- Direct Known Subclasses:
ScenarioImpl
public abstract class Scenario extends Object
- Author:
- Martin Schimak
-
-
Constructor Summary
Constructors Constructor Description Scenario()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.camunda.bpm.engine.runtime.ProcessInstanceinstance(ProcessScenario scenario)Retrieve the process instance run by the scenario provided as parameter.abstract List<org.camunda.bpm.engine.runtime.ProcessInstance>instances(ProcessScenario scenario)Retrieve the process instances run by the scenario provided as parameter.static ProcessRunner.StartableRunnerrun(ProcessScenario scenario)Run a new process instance by means of the scenario interface provided as parameter.static ProcessRunneruse(ProcessScenario scenario)Integrate an existing process instance (e.g.
-
-
-
Method Detail
-
run
public static ProcessRunner.StartableRunner run(ProcessScenario scenario)
Run a new process instance by means of the scenario interface provided as parameter. .- Parameters:
scenario- interface to be used for running the process instance
-
use
public static ProcessRunner use(ProcessScenario scenario)
Integrate an existing process instance (e.g. created by a Call Activity) into a scenario run by means of the scenario interface provided as parameter.- Parameters:
scenario- interface to be used for running the process instance
-
instance
public abstract org.camunda.bpm.engine.runtime.ProcessInstance instance(ProcessScenario scenario)
Retrieve the process instance run by the scenario provided as parameter.- Parameters:
scenario- for which the process instance should be delivered- Returns:
- the process instance run by that scenario.
- Throws:
IllegalStateException- in case the scenario executed more than a single process instance based on the scenario provided as a parameter.
-
instances
public abstract List<org.camunda.bpm.engine.runtime.ProcessInstance> instances(ProcessScenario scenario)
Retrieve the process instances run by the scenario provided as parameter.- Parameters:
scenario- for which the process instances should be delivered- Returns:
- the process instances run by that scenario in the order in which they were added to the scenario during the scenario runtime.
-
-