Interface IWorkflowBpmnAssociationEdgeBuilder

All Superinterfaces:
IWorkflowBpmnAssociationLikeEdgeBuilder<IWorkflowBpmnAssociationEdgeBuilder, de.xima.bpmn_model.api.element.bpmn.foundation.BaseElement<?>>, IWorkflowBpmnConnectionEdgeBuilder<IWorkflowBpmnAssociationEdgeBuilder, de.xima.bpmn_model.api.element.bpmn.foundation.BaseElement<?>>

public interface IWorkflowBpmnAssociationEdgeBuilder extends IWorkflowBpmnAssociationLikeEdgeBuilder<IWorkflowBpmnAssociationEdgeBuilder, de.xima.bpmn_model.api.element.bpmn.foundation.BaseElement<?>>
Builder for creating an Association and a BPMN edge between a source and a target, used by IFlattenedAlignmentItemMap.association().

When modelling a workflow element as BPMN, the usual approach is to create a nested tree of alignment items, making use of the layouter. This tree then gets resolved to a flat map. Finally, the various method on IFlattenedAlignmentItemMap can be used to create the BPMN shapes, BPMN edges and associations.

Since:
8.4.0
  • Method Details

    • associationDirection

      @CanIgnoreReturnValue IWorkflowBpmnAssociationEdgeBuilder associationDirection(de.xima.bpmn_model.api.element.bpmn.artifacts.AssociationDirection direction)
      Sets the direction of the association. Defaults to NONE.
      Parameters:
      direction - The direction of the association.
      Returns:
      This builder for chaining method calls.
    • build

      @CanIgnoreReturnValue IWorkflowBpmnAssociationEdge build()
      Creates an Association and BPMN edge between the configured source and target.
      Returns:
      The created association and BPMN edge.
    • closestDiagonalConnectionToAnnotation

      @CanIgnoreReturnValue IWorkflowBpmnAssociationEdgeBuilder closestDiagonalConnectionToAnnotation(IAnnotatedNamedBpmnElementLayout<? extends de.xima.bpmn_model.api.element.bpmn.foundation.BaseElement<?>> layout)
      Sets the source of the association to the element of the BPMN element layout, and the target to its text annotation. See closestDiagonalConnection for further details.
      Parameters:
      layout - The layout of the BPMN element with an annotation.
      Returns:
      This builder for chaining method calls.