public class TestCaseInstance extends Object
TestCaseExecutor and handlers (e.g. UserTaskHandler) that are part of a test
case.| Modifier and Type | Field and Description |
|---|---|
protected String |
end |
static String |
PROCESS_ENGINE_NAME
Name of the process engine to use.
|
protected String |
processDefinitionKey
Key of the test case related process definition.
|
protected boolean |
processEnd |
protected org.camunda.bpm.engine.ProcessEngine |
processEngine |
protected String |
start |
protected String |
tenantId |
| Constructor and Description |
|---|
TestCaseInstance() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(EventHandler handler) |
void |
apply(ExternalTaskHandler handler) |
void |
apply(JobHandler handler) |
void |
apply(MultiInstanceHandler<?,?> handler) |
void |
apply(MultiInstanceScopeHandler<?> handler) |
void |
apply(UserTaskHandler handler) |
protected void |
deploy(String deploymentName,
InputStream bpmnResource) |
protected void |
deploy(String deploymentName,
String bpmnResourceName) |
boolean |
execute(org.camunda.bpm.engine.impl.pvm.delegate.ActivityExecution execution,
org.camunda.bpm.engine.impl.bpmn.behavior.CallActivityBehavior behavior)
Executes a stubbed call activity using a
CallActivityHandler that was registered for the
given activity. |
String |
getDeploymentId() |
String |
getEnd() |
String |
getProcessDefinitionId() |
String |
getProcessDefinitionKey() |
org.camunda.bpm.engine.ProcessEngine |
getProcessEngine() |
String |
getStart() |
boolean |
isProcessEnd() |
protected void |
registerCallActivityHandler(String activityId,
CallActivityHandler handler) |
protected void |
setProcessInstance(org.camunda.bpm.engine.runtime.ProcessInstance pi) |
protected void |
undeploy() |
public static final String PROCESS_ENGINE_NAME
protected String end
protected String processDefinitionKey
protected boolean processEnd
protected org.camunda.bpm.engine.ProcessEngine processEngine
protected String start
protected String tenantId
public void apply(EventHandler handler)
public void apply(ExternalTaskHandler handler)
public void apply(JobHandler handler)
public void apply(MultiInstanceHandler<?,?> handler)
public void apply(MultiInstanceScopeHandler<?> handler)
public void apply(UserTaskHandler handler)
protected void deploy(String deploymentName, InputStream bpmnResource)
public boolean execute(org.camunda.bpm.engine.impl.pvm.delegate.ActivityExecution execution,
org.camunda.bpm.engine.impl.bpmn.behavior.CallActivityBehavior behavior)
throws Exception
CallActivityHandler that was registered for the
given activity.execution - The current execution.behavior - The call activity's original behavior.true, if the execution should leave the call activity. false, if the
execution should wait at the call activity.Exception - If the occurrence of an error end event is simulated and the error propagation
fails.CallActivityHandler.simulateBpmnError(String, String)public String getDeploymentId()
public String getEnd()
public String getProcessDefinitionId()
public String getProcessDefinitionKey()
public org.camunda.bpm.engine.ProcessEngine getProcessEngine()
public String getStart()
public boolean isProcessEnd()
protected void registerCallActivityHandler(String activityId, CallActivityHandler handler)
protected void setProcessInstance(org.camunda.bpm.engine.runtime.ProcessInstance pi)
protected void undeploy()
Copyright © 2023 Camunda. All rights reserved.