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(org.camunda.bpm.model.bpmn.instance.Process process)
  • Method Details

    • get

      public org.camunda.bpm.model.bpmn.instance.FlowNode get(String flowNodeId)
    • getMultiInstanceLoopCharacteristics

      public org.camunda.bpm.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 org.camunda.bpm.model.bpmn.instance.Process getProcess()
    • getTopicName

      public String getTopicName(String flowNodeId)
    • has

      public boolean has(String flowNodeId)
    • isBoundaryEvent

      public boolean isBoundaryEvent(String flowNodeId)
    • isCallActivity

      public boolean isCallActivity(String flowNodeId)
    • isEventBasedGateway

      public boolean isEventBasedGateway(String flowNodeId)
    • isExternalTask

      public boolean isExternalTask(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)
    • isUserTask

      public boolean isUserTask(String flowNodeId)