|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.test.CamundaSupport
public class CamundaSupport
Helper for Camunda access.
| Constructor Summary | |
|---|---|
CamundaSupport()
Create support component with default process engine. |
|
CamundaSupport(org.camunda.bpm.engine.ProcessEngine processEngine)
Create support component. |
|
| Method Summary | |
|---|---|
void |
deploy(String... processModelResources)
Checks deployment of the process definition. |
CamundaSupport |
getInjectedObject(Class<?> injectionPointType)
|
Object |
getKey(org.needle4j.injection.InjectionTargetInformation injectionTargetInformation)
|
org.camunda.bpm.engine.ProcessEngine |
getProcessEngine()
Retrieves process engine. |
org.camunda.bpm.engine.runtime.ProcessInstance |
getProcessInstance()
Retrieves the process instance. |
Date |
getStartTime()
Retrieves start time. |
boolean |
hasRunningProcessInstance()
Checks whether current process instance is still running. |
static boolean |
parseStatement(String negation,
String value,
boolean defaultValue)
Parses the verb and maps it to a boolean decision. |
void |
resetClock()
Resets process engine clock. |
void |
setCurrentTime(Date currentTime)
Sets time. |
org.camunda.bpm.engine.runtime.ProcessInstance |
startProcessInstanceByKey(String processDefinitionKey)
Starts process by process definition key. |
org.camunda.bpm.engine.runtime.ProcessInstance |
startProcessInstanceByKey(String processDefinitionKey,
Map<String,Object> variables)
Starts process by process definition key with given payload. |
void |
undeploy()
Cleans up resources. |
boolean |
verify(org.needle4j.injection.InjectionTargetInformation injectionTargetInformation)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CamundaSupport()
public CamundaSupport(org.camunda.bpm.engine.ProcessEngine processEngine)
processEngine - process engine.| Method Detail |
|---|
public void deploy(String... processModelResources)
processModelResources - process definition file (BPMN)public void undeploy()
public org.camunda.bpm.engine.runtime.ProcessInstance startProcessInstanceByKey(String processDefinitionKey,
Map<String,Object> variables)
processDefinitionKey - process definition keys.variables - maps of initial payload variables.
RuntimeService.startProcessInstanceByKey(String, Map)public org.camunda.bpm.engine.runtime.ProcessInstance startProcessInstanceByKey(String processDefinitionKey)
processDefinitionKey - process definition keys.
public org.camunda.bpm.engine.runtime.ProcessInstance getProcessInstance()
public void setCurrentTime(Date currentTime)
currentTime - sets current time in the enginepublic void resetClock()
public org.camunda.bpm.engine.ProcessEngine getProcessEngine()
public Date getStartTime()
public static boolean parseStatement(String negation,
String value,
boolean defaultValue)
negation - a way how the verb is negated. (e.G. not)value - part of text containing the verb in regular or negated form.defaultValue - default value, if parsing fails.
public boolean hasRunningProcessInstance()
public CamundaSupport getInjectedObject(Class<?> injectionPointType)
getInjectedObject in interface org.needle4j.injection.InjectionProvider<CamundaSupport>public Object getKey(org.needle4j.injection.InjectionTargetInformation injectionTargetInformation)
getKey in interface org.needle4j.injection.InjectionProvider<CamundaSupport>public boolean verify(org.needle4j.injection.InjectionTargetInformation injectionTargetInformation)
verify in interface org.needle4j.injection.InjectionVerifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||