Class ProcessDefinitionInspectionUtility

java.lang.Object
io.camunda.zeebe.process.test.inspections.ProcessDefinitionInspectionUtility

public class ProcessDefinitionInspectionUtility extends Object
  • Constructor Details

    • ProcessDefinitionInspectionUtility

      public ProcessDefinitionInspectionUtility()
  • Method Details

    • getBpmnElementId

      public static String getBpmnElementId(String bpmnElementName)
      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

      public static String getBpmnElementId(String bpmnProcessId, String bpmnElementName)
      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 process
      bpmnElementName - 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: