public class FluentExecutionListenerMock extends Object implements org.camunda.bpm.engine.delegate.ExecutionListener
| Modifier and Type | Field and Description |
|---|---|
protected T |
mock |
protected Class<P> |
parameterType |
| Constructor and Description |
|---|
FluentExecutionListenerMock() |
| Modifier and Type | Method and Description |
|---|---|
protected P |
any() |
T |
getMock() |
void |
notify(org.camunda.bpm.engine.delegate.DelegateExecution execution) |
void |
onExecutionSetVariables(Map<String,Object> variables) |
void |
onExecutionSetVariables(org.camunda.bpm.engine.variable.VariableMap variables) |
void |
onExecutionThrowBpmnError(org.camunda.bpm.engine.delegate.BpmnError bpmnError)
The implementation of throw-bpmn-error depends on the concrete type.
|
void |
onExecutionThrowBpmnError(String errorCode)
The mock will throw a BpmnError with given errorCode.
|
void |
onExecutionThrowBpmnError(String errorCode,
String message)
The mock will throw a BpmnError with given errorCode and message.
|
void |
onExecutionThrowException(Exception exception)
The mock will throw the given exception on execution.
|
protected void |
setVariables(org.camunda.bpm.engine.delegate.VariableScope variableScope,
Map<String,Object> variables) |
protected final T mock
protected final Class<P extends org.camunda.bpm.engine.delegate.VariableScope> parameterType
public void onExecutionSetVariables(org.camunda.bpm.engine.variable.VariableMap variables)
variables - the process variables this delegate sets when executedpublic void onExecutionThrowBpmnError(org.camunda.bpm.engine.delegate.BpmnError bpmnError)
bpmnError - the error instancepublic void onExecutionThrowException(Exception exception)
exception - the exception instancepublic void notify(org.camunda.bpm.engine.delegate.DelegateExecution execution)
throws Exception
notify in interface org.camunda.bpm.engine.delegate.DelegateListener<org.camunda.bpm.engine.delegate.DelegateExecution>notify in interface org.camunda.bpm.engine.delegate.ExecutionListenerExceptionprotected void setVariables(org.camunda.bpm.engine.delegate.VariableScope variableScope,
Map<String,Object> variables)
public void onExecutionSetVariables(Map<String,Object> variables)
variables - the process variables this delegate sets when executedpublic void onExecutionThrowBpmnError(String errorCode)
errorCode - the error codepublic void onExecutionThrowBpmnError(String errorCode, String message)
errorCode - the error codemessage - the error messagepublic T getMock()
protected P any()
Copyright © 2017 camunda services GmbH. All rights reserved.