public class ProcessCoverage extends Object
| Constructor and Description |
|---|
ProcessCoverage(org.camunda.bpm.engine.ProcessEngine processEngine,
org.camunda.bpm.engine.repository.ProcessDefinition processDefinition)
Constructor assembling a pristine process coverage object from the
process definition and BPMN model information retrieved from the process
engine.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCoveredElement(CoveredElement element)
Adds a covered element to the coverage.
|
void |
endCoveredElement(CoveredElement element)
Mark a covered element execution as ended.
|
double |
getCoveragePercentage()
Retrieves the coverage percentage for all elements.
|
Set<String> |
getCoveredFlowNodeIds() |
Set<CoveredFlowNode> |
getCoveredFlowNodes() |
Set<String> |
getCoveredSequenceFlowIds() |
Set<CoveredSequenceFlow> |
getCoveredSequenceFlows() |
Set<org.camunda.bpm.model.bpmn.instance.FlowNode> |
getDefinitionFlowNodes()
Retrieves the process definitions flow nodes.
|
Set<org.camunda.bpm.model.bpmn.instance.SequenceFlow> |
getDefinitionSequenceFlows() |
org.camunda.bpm.engine.repository.ProcessDefinition |
getProcessDefinition() |
String |
getProcessDefinitionId() |
String |
getProcessDefinitionKey() |
String |
toString() |
public ProcessCoverage(org.camunda.bpm.engine.ProcessEngine processEngine,
org.camunda.bpm.engine.repository.ProcessDefinition processDefinition)
processEngine - processDefinition - public void addCoveredElement(CoveredElement element)
element - public void endCoveredElement(CoveredElement element)
element - A search object. Only the original object in the
coveredFlowNodes Set will be modified.public double getCoveragePercentage()
public Set<org.camunda.bpm.model.bpmn.instance.FlowNode> getDefinitionFlowNodes()
public Set<org.camunda.bpm.model.bpmn.instance.SequenceFlow> getDefinitionSequenceFlows()
public Set<CoveredFlowNode> getCoveredFlowNodes()
public Set<CoveredSequenceFlow> getCoveredSequenceFlows()
public org.camunda.bpm.engine.repository.ProcessDefinition getProcessDefinition()
public String getProcessDefinitionId()
public String getProcessDefinitionKey()
Copyright © 2017 camunda services GmbH. All rights reserved.