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 Summary
Modifier and TypeMethodDescriptionassociationDirection(de.xima.bpmn_model.api.element.bpmn.artifacts.AssociationDirection direction) Sets the direction of the association.build()Creates anAssociationandBPMN edgebetween the configured source and target.closestDiagonalConnectionToAnnotation(IAnnotatedNamedBpmnElementLayout<? extends de.xima.bpmn_model.api.element.bpmn.foundation.BaseElement<?>> layout) Sets the source of the association to theelementof theBPMN element layout, and the target to itstext annotation.Methods inherited from interface IWorkflowBpmnAssociationLikeEdgeBuilder
closestDiagonalConnectionMethods inherited from interface IWorkflowBpmnConnectionEdgeBuilder
betweenPorts, betweenPorts, betweenPorts, betweenPorts, connectionStyle, firstAxis, fromEdge, fromEdge, fromInPort, fromInPort, fromOutPort, fromOutPort, fromPoint, fromPoint, fromPoint, fromPoint, fromPort, fromPort, toEdge, toEdge, toInPort, toInPort, toOutPort, toOutPort, toPoint, toPoint, toPoint, toPoint, toPort, toPort, viaInPort, viaOutPort, viaPoint, viaPoint, viaPoint
-
Method Details
-
associationDirection
@CanIgnoreReturnValue IWorkflowBpmnAssociationEdgeBuilder associationDirection(de.xima.bpmn_model.api.element.bpmn.artifacts.AssociationDirection direction) Sets the direction of the association. Defaults toNONE.- Parameters:
direction- The direction of the association.- Returns:
- This builder for chaining method calls.
-
build
Creates anAssociationandBPMN edgebetween 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 theelementof theBPMN element layout, and the target to itstext annotation. SeeclosestDiagonalConnectionfor further details.- Parameters:
layout- The layout of the BPMN element with an annotation.- Returns:
- This builder for chaining method calls.
-