Package org.camunda.automator.definition
Class Scenario
java.lang.Object
org.camunda.automator.definition.Scenario
the Scenario Head group a scenario definition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddExecution(ScenarioExecution scnExecution) Add a new executionstatic ScenariocreateFromFile(File scenarioFile) static ScenariocreateFromInputStream(InputStream scenarioInput, String origin) Load the scenario from a Filestatic ScenariocreateFromJson(String jsonContent) getFlows()getName()setProcessId(String processId)
-
Constructor Details
-
Scenario
public Scenario()
-
-
Method Details
-
createFromJson
-
createFromFile
- Throws:
AutomatorException
-
createFromInputStream
public static Scenario createFromInputStream(InputStream scenarioInput, String origin) throws AutomatorException Load the scenario from a File- Parameters:
scenarioInput- InputStream to read- Returns:
- the scenario
- Throws:
AutomatorException- if file cannot be read or it's not a Json file
-
addExecution
Add a new execution- Returns:
- the scenario itself
-
getExecutions
-
getFlows
-
getWarmingUp
-
getFlowControl
-
getDeployments
-
getName
-
setName
-
getVersion
-
getProcessName
-
getProcessId
-
setProcessId
-
getScenarioFile
-
getServerName
-
getServerType
-