public class CallActivityMock extends Object
| Constructor and Description |
|---|
CallActivityMock(String processId) |
| Modifier and Type | Method and Description |
|---|---|
org.camunda.bpm.engine.repository.Deployment |
deploy(org.camunda.bpm.engine.test.ProcessEngineRule rule)
This will deploy the mock process.
|
CallActivityMock |
onExecutionAddVariable(String key,
Object val)
On execution, the MockProcess will add the given process variable
|
CallActivityMock |
onExecutionAddVariables(org.camunda.bpm.engine.variable.VariableMap variables)
On execution, the MockProcess will add the given VariableMap to the execution
|
CallActivityMock |
onExecutionDo(java.util.function.Consumer<org.camunda.bpm.engine.delegate.DelegateExecution> consumer)
On execution, the MockProcess will call the given consumer with a DelegateExecution.
|
CallActivityMock |
onExecutionDo(String serviceId,
java.util.function.Consumer<org.camunda.bpm.engine.delegate.DelegateExecution> consumer)
On execution, the MockProcess will execute the given consumer with a DelegateExecution.
|
CallActivityMock |
onExecutionRunIntoError(Throwable exception)
On execution, the MockProcess will throw a RuntimeException for the given Throwable.
|
CallActivityMock |
onExecutionSendMessage(String message)
On execution, the MockProcess will send the given message to all
|
CallActivityMock |
onExecutionSendMessage(String message,
String businessId)
On execution, the MockProcess will send the given message to a process instance with the given businessId
|
CallActivityMock |
onExecutionSetVariables(org.camunda.bpm.engine.variable.VariableMap variables)
On execution, the MockProcess will set the given VariableMap to the execution
(ATTENTION: This means all current process variables are replaced with the given Map!)
|
CallActivityMock |
onExecutionWaitForMessage(String message)
On execution, the MockProcess will wait for the given message
|
CallActivityMock |
onExecutionWaitForTimerWithDate(Date date)
On execution, the MockProcess will wait on a timer which is configured with an date
|
CallActivityMock |
onExecutionWaitForTimerWithDate(String iso8601date)
On execution, the MockProcess will wait on a timer which is configured with an ISO 8601 date.
|
CallActivityMock |
onExecutionWaitForTimerWithDuration(String iso8601duration)
On execution, the MockProcess will wait on a timer which is configured with an ISO 8601 duration.
|
public CallActivityMock(String processId)
public CallActivityMock onExecutionSetVariables(org.camunda.bpm.engine.variable.VariableMap variables)
variables - public CallActivityMock onExecutionAddVariables(org.camunda.bpm.engine.variable.VariableMap variables)
variables - public CallActivityMock onExecutionAddVariable(String key, Object val)
key - ... key of the process variableval - ... value of the process variablepublic CallActivityMock onExecutionDo(java.util.function.Consumer<org.camunda.bpm.engine.delegate.DelegateExecution> consumer)
consumer - public CallActivityMock onExecutionDo(String serviceId, java.util.function.Consumer<org.camunda.bpm.engine.delegate.DelegateExecution> consumer)
serviceId - ... the id of the mock delegateconsumer - public CallActivityMock onExecutionWaitForTimerWithDate(Date date)
date - public CallActivityMock onExecutionWaitForTimerWithDate(String iso8601date)
iso8601date - public CallActivityMock onExecutionWaitForTimerWithDuration(String iso8601duration)
iso8601duration - public CallActivityMock onExecutionSendMessage(String message)
message - public CallActivityMock onExecutionSendMessage(String message, String businessId)
message - businessId - public CallActivityMock onExecutionWaitForMessage(String message)
message - public CallActivityMock onExecutionRunIntoError(Throwable exception)
exception - public org.camunda.bpm.engine.repository.Deployment deploy(org.camunda.bpm.engine.test.ProcessEngineRule rule)
rule - Copyright © 2018 camunda services GmbH. All rights reserved.