Package org.camunda.bpm.scenario.run
Interface ProcessRunner.StartableRunner
-
- All Known Implementing Classes:
MockedProcessRunnerImpl,ProcessRunnerImpl
- Enclosing interface:
- ProcessRunner
public static interface ProcessRunner.StartableRunner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProcessRunner.ExecutableRunner.StartingByStarterstartBy(ProcessStarter starter)Start the new process instance by means of custom code.ProcessRunner.ExecutableRunner.StartingByKeystartByKey(String processDefinitionKey)Start the new process instance by providing a process definition key.ProcessRunner.ExecutableRunner.StartingByKeystartByKey(String processDefinitionKey, String businessKey)Start the new process instance by providing a process definition key, business key and provide a few process instance variables.ProcessRunner.ExecutableRunner.StartingByKeystartByKey(String processDefinitionKey, String businessKey, Map<String,Object> variables)Start the new process instance by providing a process definition key, business key and provide a few process instance variables.ProcessRunner.ExecutableRunner.StartingByKeystartByKey(String processDefinitionKey, Map<String,Object> variables)Start the new process instance by providing a process definition key and provide a few process instance variables.ProcessRunner.ExecutableRunner.StartingByMessagestartByMessage(String messageName)Start the new process instance by providing a message name.ProcessRunner.ExecutableRunner.StartingByMessagestartByMessage(String messageName, Map<String,Object> variables)Start the new process instance by providing a message name and provide a few process instance variables.ProcessRunner.StartableRunnerwithMockedProcess(String processDefinitionKey)Mock the scenario by deploying a process with the given process definition key, but only a single wait state to interact with (internally implemented with an external task).
-
-
-
Method Detail
-
startByKey
ProcessRunner.ExecutableRunner.StartingByKey startByKey(String processDefinitionKey)
Start the new process instance by providing a process definition key.- Parameters:
processDefinitionKey- to be used to start a process instance
-
startByKey
ProcessRunner.ExecutableRunner.StartingByKey startByKey(String processDefinitionKey, Map<String,Object> variables)
Start the new process instance by providing a process definition key and provide a few process instance variables.- Parameters:
processDefinitionKey- to be used to start a process instancevariables- to be used as process instance variables from the start on.
-
startByKey
ProcessRunner.ExecutableRunner.StartingByKey startByKey(String processDefinitionKey, String businessKey, Map<String,Object> variables)
Start the new process instance by providing a process definition key, business key and provide a few process instance variables.- Parameters:
processDefinitionKey- to be used to start a process instancebusinessKey- to be used to start a process by business keyvariables- to be used as process instance variables from the start on.
-
startByKey
ProcessRunner.ExecutableRunner.StartingByKey startByKey(String processDefinitionKey, String businessKey)
Start the new process instance by providing a process definition key, business key and provide a few process instance variables.- Parameters:
processDefinitionKey- to be used to start a process instancebusinessKey- to be used to start a process by business key
-
startByMessage
ProcessRunner.ExecutableRunner.StartingByMessage startByMessage(String messageName)
Start the new process instance by providing a message name.- Parameters:
messageName- to be used to start a process instance
-
startByMessage
ProcessRunner.ExecutableRunner.StartingByMessage startByMessage(String messageName, Map<String,Object> variables)
Start the new process instance by providing a message name and provide a few process instance variables.- Parameters:
messageName- to be used to start a process instancevariables- to be used as process instance variables from the start on.
-
startBy
ProcessRunner.ExecutableRunner.StartingByStarter startBy(ProcessStarter starter)
Start the new process instance by means of custom code. Implement the ProcessStarter.start() method to create a process instance.- Parameters:
starter- interface which delivers a new process instance
-
withMockedProcess
ProcessRunner.StartableRunner withMockedProcess(String processDefinitionKey)
Mock the scenario by deploying a process with the given process definition key, but only a single wait state to interact with (internally implemented with an external task).- Parameters:
processDefinitionKey- the process definition key to mock
-
-