Class ProcessDefinitionInspectionUtility
java.lang.Object
io.camunda.zeebe.process.test.inspections.ProcessDefinitionInspectionUtility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBpmnElementId(io.camunda.client.api.response.DeploymentEvent deployment, String bpmnElementName) Finds the BPMN element id by its name inside the referenced deployment.static StringgetBpmnElementId(String bpmnElementName) Finds the BPMN element id by its name.static StringgetBpmnElementId(String bpmnProcessId, String bpmnElementName) Finds the BPMN element id by its name inside the referenced BPMN process.
-
Constructor Details
-
ProcessDefinitionInspectionUtility
public ProcessDefinitionInspectionUtility()
-
-
Method Details
-
getBpmnElementId
Finds the BPMN element id by its name.Keeps the test human-readable when asserting on bpmn elements. Asserts that there is only one element for the given name to prevent mistakes.
- Parameters:
bpmnElementName- the name of the BPMN element- Returns:
- the id of the found BPMN element
-
getBpmnElementId
Finds the BPMN element id by its name inside the referenced BPMN process.Keeps the test human-readable when asserting on bpmn elements. Asserts that there is only one element for the given name to prevent mistakes.
- Parameters:
bpmnProcessId- the id of the deployed processbpmnElementName- the name of the BPMN element- Returns:
- the id of the found BPMN in the given process
-
getBpmnElementId
public static String getBpmnElementId(io.camunda.client.api.response.DeploymentEvent deployment, String bpmnElementName) Finds the BPMN element id by its name inside the referenced deployment.Keeps the test human-readable when asserting on bpmn elements. Asserts that there is only one element for the given name to prevent mistakes.
- Parameters:
deployment-bpmnElementName-- Returns:
-