public class CallActivityMock extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
CallActivityMock.MockedModelConfigurer
Interface used as a callback to set some attributes of the mocked process model (e.g.
|
| Constructor and Description |
|---|
CallActivityMock(String processId) |
CallActivityMock(String processId,
CallActivityMock.MockedModelConfigurer modelConfigurer) |
| Modifier and Type | Method and Description |
|---|---|
org.camunda.bpm.engine.repository.Deployment |
deploy(org.camunda.bpm.engine.ProcessEngineServices processEngineServices) |
org.camunda.bpm.engine.repository.Deployment |
deploy(org.camunda.bpm.engine.RepositoryService repositoryService)
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 |
onExecutionWaitForSignal(String signalName)
On execution, the MockProcess will wait for the given signal
|
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, CallActivityMock.MockedModelConfigurer modelConfigurer)
public CallActivityMock(String processId)
public CallActivityMock onExecutionSetVariables(org.camunda.bpm.engine.variable.VariableMap variables)
variables - variables to setpublic CallActivityMock onExecutionAddVariables(org.camunda.bpm.engine.variable.VariableMap variables)
variables - the variables to addpublic 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 - the javaDelegate code to be called on executionpublic CallActivityMock onExecutionDo(String serviceId, java.util.function.Consumer<org.camunda.bpm.engine.delegate.DelegateExecution> consumer)
serviceId - ... the id of the mock delegateconsumer - delegate for service taskpublic CallActivityMock onExecutionWaitForTimerWithDate(Date date)
date - the timer dueDatepublic CallActivityMock onExecutionWaitForTimerWithDate(String iso8601date)
iso8601date - the timer dueDatepublic CallActivityMock onExecutionWaitForTimerWithDuration(String iso8601duration)
iso8601duration - the timer dueDatepublic CallActivityMock onExecutionSendMessage(String message)
message - the message to receivepublic CallActivityMock onExecutionSendMessage(String message, String businessId)
message - the message to receivebusinessId - the process business keypublic CallActivityMock onExecutionWaitForMessage(String message)
message - the message to receivepublic CallActivityMock onExecutionRunIntoError(Throwable exception)
exception - the error to throwpublic CallActivityMock onExecutionWaitForSignal(String signalName)
signalName - the signal to receivepublic org.camunda.bpm.engine.repository.Deployment deploy(org.camunda.bpm.engine.RepositoryService repositoryService)
public org.camunda.bpm.engine.repository.Deployment deploy(org.camunda.bpm.engine.ProcessEngineServices processEngineServices)
Copyright © 2020 Camunda Services GmbH. All rights reserved.