Class BpmnSupport

java.lang.Object
org.camunda.community.bpmndt.model.BpmnSupport

public class BpmnSupport extends Object
BPMN support, allows easier working with flow nodes of a Process.
  • Constructor Details

    • BpmnSupport

      public BpmnSupport(io.camunda.zeebe.model.bpmn.instance.Process process)
  • Method Details

    • get

      public io.camunda.zeebe.model.bpmn.instance.FlowNode get(String flowNodeId)
    • getMultiInstanceLoopCharacteristics

      public io.camunda.zeebe.model.bpmn.instance.MultiInstanceLoopCharacteristics getMultiInstanceLoopCharacteristics(String flowNodeId)
      Gets the multi instance loop characteristics from the flow node with the given ID.
      Parameters:
      flowNodeId - A specific flow node ID.
      Returns:
      The characteristics or null, if the flow node does not exist or does not have such loop characteristics.
    • getParentElementId

      public String getParentElementId(String flowNodeId)
      Returns the ID of the parent element, which can be the ID of the process, an embedded sub process or a transaction.
      Parameters:
      flowNodeId - A specific flow node ID.
      Returns:
      The parent element ID or null, if the flow node with the given ID does not exist, has no parent element or the parent element is not of type BaseElement.
    • getProcess

      public io.camunda.zeebe.model.bpmn.instance.Process getProcess()
    • has

      public boolean has(String flowNodeId)
    • isBoundaryEvent

      public boolean isBoundaryEvent(String flowNodeId)
    • isBusinessRuleTask

      public boolean isBusinessRuleTask(String flowNodeId)
    • isCallActivity

      public boolean isCallActivity(String flowNodeId)
    • isEndEvent

      public boolean isEndEvent(String flowNodeId)
    • isEventBasedGateway

      public boolean isEventBasedGateway(String flowNodeId)
    • isIntermediateCatchEvent

      public boolean isIntermediateCatchEvent(String flowNodeId)
    • isIntermediateThrowEvent

      public boolean isIntermediateThrowEvent(String flowNodeId)
    • isProcessEnd

      public boolean isProcessEnd(String flowNodeId)
      Determines if the flow node with the given ID ends the process or not. This is the case if it exists, if it is an end event and if the parent element is a process.
      Parameters:
      flowNodeId - A specific flow node ID.
      Returns:
      true, if the flow node ends the process. Otherwise false.
    • isProcessStart

      public boolean isProcessStart(String flowNodeId)
    • isReceiveTask

      public boolean isReceiveTask(String flowNodeId)
    • isScriptTask

      public boolean isScriptTask(String flowNodeId)
    • isSendTask

      public boolean isSendTask(String flowNodeId)
    • isServiceTask

      public boolean isServiceTask(String flowNodeId)
    • isUserTask

      public boolean isUserTask(String flowNodeId)