public class TestCaseInstance extends Object
TestCaseExecutor and handlers (e.g. UserTaskHandler) that are part of a test
case.| Modifier and Type | Field and Description |
|---|---|
static String |
PROCESS_ENGINE_NAME
Name of the process engine to use.
|
| 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 |
getProcessDefinitionKey() |
org.camunda.bpm.engine.ProcessEngine |
getProcessEngine() |
String |
getStart() |
boolean |
isProcessEnd() |
protected void |
register()
Registers the test case instance by providing a reference to the
BpmndtParseListener that
is used during BPMN model parsing. |
protected void |
registerCallActivityHandler(String activityId,
CallActivityHandler handler) |
protected void |
setEnd(String end) |
protected void |
setProcessDefinitionKey(String processDefinitionKey) |
protected void |
setProcessEnd(boolean processEnd) |
protected void |
setProcessEngine(org.camunda.bpm.engine.ProcessEngine processEngine) |
protected void |
setProcessInstance(org.camunda.bpm.engine.runtime.ProcessInstance pi) |
protected void |
setStart(String start) |
protected void |
setTenantId(String tenantId) |
protected void |
undeploy() |
public static final String PROCESS_ENGINE_NAME
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 getProcessDefinitionKey()
public org.camunda.bpm.engine.ProcessEngine getProcessEngine()
public String getStart()
public boolean isProcessEnd()
protected void register()
BpmndtParseListener that
is used during BPMN model parsing.protected void registerCallActivityHandler(String activityId, CallActivityHandler handler)
protected void setEnd(String end)
protected void setProcessDefinitionKey(String processDefinitionKey)
protected void setProcessEnd(boolean processEnd)
protected void setProcessEngine(org.camunda.bpm.engine.ProcessEngine processEngine)
protected void setProcessInstance(org.camunda.bpm.engine.runtime.ProcessInstance pi)
protected void setStart(String start)
protected void setTenantId(String tenantId)
protected void undeploy()
Copyright © 2023 Camunda Services GmbH. All rights reserved.