Interface IWorkflowBpmnFlowEdgeBuilder
-
- All Superinterfaces:
IWorkflowBpmnConnectionEdgeBuilder<IWorkflowBpmnFlowEdgeBuilder,de.xima.bpmn_model.api.element.bpmn.common.FlowNode<?>>
public interface IWorkflowBpmnFlowEdgeBuilder extends IWorkflowBpmnConnectionEdgeBuilder<IWorkflowBpmnFlowEdgeBuilder,de.xima.bpmn_model.api.element.bpmn.common.FlowNode<?>>
Builder for creating aSequenceFlow
and aBPMN edge
between a source and a target, used byIFlattenedAlignmentItemMap.flow()
.When modelling a workflow element as BPMN, the usual approach is to create a nested tree of
alignment items
, making use of thelayouter
. This tree then getsresolved
to a flat map. Finally, the various method onIFlattenedAlignmentItemMap
can be used to create theBPMN shapes
,BPMN edges
andsequence flows
.- Since:
- 8.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IWorkflowBpmnFlowEdge
build()
Creates aSequenceFlow
andBPMN edge
between the configured source and target.IWorkflowBpmnFlowEdgeBuilder
defaultFor(de.xima.bpmn_model.api.behavior.DefaultFlowAvailable<?> element)
Marks the built flow as the default flow for the given BPMN element.IWorkflowBpmnFlowEdgeBuilder
defaultFor(IBpmnElementAccessor<? extends de.xima.bpmn_model.api.behavior.DefaultFlowAvailable<?>> element)
Marks the built flow as the default flow for the given BPMN element.IWorkflowBpmnFlowEdgeBuilder
fromInPort(IStructuredBpmnModelPart part)
Sets the sequence flow's source to the in port of the given structured model part.IWorkflowBpmnFlowEdgeBuilder
fromInPort(IStructuredBpmnModelPartBuilder<?> part)
Sets the sequence flow's source to the in port of the given structured model part.IWorkflowBpmnFlowEdgeBuilder
fromInPort(IStructuredBpmnModelPartBuilder<?> part, Point2DDouble inPortPoint)
Sets the sequence flow's source to the in port of the given structured model part, using the given point as the in port point.IWorkflowBpmnFlowEdgeBuilder
fromOutPort(IStructuredBpmnModelPart part)
Sets the sequence flow's source to the out port of the given structured model part.IWorkflowBpmnFlowEdgeBuilder
fromOutPort(IStructuredBpmnModelPartBuilder<?> part)
Sets the sequence flow's source to the out port of the given structured model part.IWorkflowBpmnFlowEdgeBuilder
fromOutPort(IStructuredBpmnModelPartBuilder<?> part, Point2DDouble outPortPoint)
Sets the sequence flow's source to the out port of the given structured model part, using the given point as the out port point.IWorkflowBpmnFlowEdgeBuilder
fromStartToEndEvent(IBoundedBpmnElementLayout<?> subProcessBody)
Creates aSequenceFlow
andBPMN edge
between the start and end event of the given layout.IWorkflowBpmnFlowEdgeBuilder
name(Positioned<? extends IWorkflowBpmnAlignmentItem<StyledBpmnLabel,?>,Point2DDouble> name)
Sets the name (label) of the sequence flow.IWorkflowBpmnFlowEdgeBuilder
name(StyledBpmnLabel name)
Sets the name (label) of the sequence flow.IWorkflowBpmnFlowEdgeBuilder
name(IWorkflowBpmnAlignmentItem<StyledBpmnLabel,?> name, Point2DDouble position)
Sets the name (label) of the sequence flow.IWorkflowBpmnFlowEdgeBuilder
name(IWorkflowBpmnAlignmentItem<StyledBpmnLabel,?> name, IWorkflowBpmnFlowEdgeNameConfigurator configurator)
Sets the name (label) of the sequence flow.IWorkflowBpmnFlowEdgeBuilder
toInPort(IStructuredBpmnModelPart part)
Sets the sequence flow's target to the in port of the given structured model part.IWorkflowBpmnFlowEdgeBuilder
toInPort(IStructuredBpmnModelPartBuilder<?> part)
Sets the sequence flow's target to the in port of the given structured model part.IWorkflowBpmnFlowEdgeBuilder
toInPort(IStructuredBpmnModelPartBuilder<?> part, Point2DDouble inPortPoint)
Sets the sequence flow's target to the in port of the given structured model part, using the given point as the in port point.IWorkflowBpmnFlowEdgeBuilder
toOutPort(IStructuredBpmnModelPart part)
Sets the sequence flow's target to the out port of the given structured model part.IWorkflowBpmnFlowEdgeBuilder
toOutPort(IStructuredBpmnModelPartBuilder<?> part)
Sets the sequence flow's target to the out port of the given structured model part.IWorkflowBpmnFlowEdgeBuilder
toOutPort(IStructuredBpmnModelPartBuilder<?> part, Point2DDouble outPortPoint)
Sets the sequence flow's target to the out port of the given structured model part, using the given point as the out port point.-
Methods inherited from interface de.xima.fc.interfaces.workflow.bpmn.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 Detail
-
build
@CanIgnoreReturnValue IWorkflowBpmnFlowEdge build()
Creates aSequenceFlow
andBPMN edge
between the configured source and target.- Returns:
- The created sequence flow and BPMN edge.
-
defaultFor
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder defaultFor(de.xima.bpmn_model.api.behavior.DefaultFlowAvailable<?> element)
Marks the built flow as the default flow for the given BPMN element.- Parameters:
element
- The BPMN element that can have a default flow.- Returns:
- This builder for chaining method calls.
-
defaultFor
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder defaultFor(IBpmnElementAccessor<? extends de.xima.bpmn_model.api.behavior.DefaultFlowAvailable<?>> element)
Marks the built flow as the default flow for the given BPMN element.- Parameters:
element
- The BPMN element that can have a default flow.- Returns:
- This builder for chaining method calls.
-
fromInPort
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder fromInPort(IStructuredBpmnModelPartBuilder<?> part, Point2DDouble inPortPoint)
Sets the sequence flow's source to the in port of the given structured model part, using the given point as the in port point.- Parameters:
part
- The source part of the sequence flow.inPortPoint
- The in port point of the sequence flow, which is used as the first waypoint.- Returns:
- This builder for chaining method calls.
-
fromInPort
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder fromInPort(IStructuredBpmnModelPart part)
Sets the sequence flow's source to the in port of the given structured model part.- Parameters:
part
- The source part of the sequence flow.- Returns:
- This builder for chaining method calls.
-
fromInPort
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder fromInPort(IStructuredBpmnModelPartBuilder<?> part)
Sets the sequence flow's source to the in port of the given structured model part. Use the current in port as the source point.- Parameters:
part
- The source part of the sequence flow.- Returns:
- This builder for chaining method calls.
-
fromOutPort
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder fromOutPort(IStructuredBpmnModelPartBuilder<?> part, Point2DDouble outPortPoint)
Sets the sequence flow's source to the out port of the given structured model part, using the given point as the out port point.- Parameters:
part
- The source part of the sequence flow.outPortPoint
- The out port point of the sequence flow, which is used as the first waypoint.- Returns:
- This builder for chaining method calls.
-
fromOutPort
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder fromOutPort(IStructuredBpmnModelPart part)
Sets the sequence flow's source to the out port of the given structured model part.- Parameters:
part
- The source part of the sequence flow.- Returns:
- This builder for chaining method calls.
-
fromOutPort
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder fromOutPort(IStructuredBpmnModelPartBuilder<?> part)
Sets the sequence flow's source to the out port of the given structured model part. Use the current out port as the source point.- Parameters:
part
- The source part of the sequence flow.- Returns:
- This builder for chaining method calls.
-
fromStartToEndEvent
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder fromStartToEndEvent(IBoundedBpmnElementLayout<?> subProcessBody)
Creates aSequenceFlow
andBPMN edge
between the start and end event of the given layout. Uses the out port of the start event and the in port of the end event.- Parameters:
subProcessBody
- The sub process body of the sequence flow.- Returns:
- This builder for chaining method calls.
-
name
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder name(StyledBpmnLabel name)
Sets the name (label) of the sequence flow. Applicable only when the source is an initialflow node
where a sequence flow starts, not an intermediatestructured BPMN model part
. When set, sets the name on thesequence flow
and creates aBPMN label
forBPMN edge
with the appropriate position and dimensions.This method assumes that an
alignment item
was already created for the label, whosevalue
is the given name.- Parameters:
name
- The name for the sequence flow.- Returns:
- This builder for chaining method calls.
-
name
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder name(IWorkflowBpmnAlignmentItem<StyledBpmnLabel,?> name, Point2DDouble position)
Sets the name (label) of the sequence flow. Applicable only when the source is an initialflow node
where a sequence flow starts, not an intermediatestructured BPMN model part
. When set, sets the name on thesequence flow
and creates aBPMN label
forBPMN edge
with the appropriate position and dimensions.- Parameters:
name
- The item with the name of the sequence flow and the dimensions of the label text.position
- The absolute position of the label.- Returns:
- This builder for chaining method calls.
-
name
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder name(Positioned<? extends IWorkflowBpmnAlignmentItem<StyledBpmnLabel,?>,Point2DDouble> name)
Sets the name (label) of the sequence flow. Applicable only when the source is an initialflow node
where a sequence flow starts, not an intermediatestructured BPMN model part
. When set, sets the name on thesequence flow
and creates aBPMN label
forBPMN edge
with the appropriate position and dimensions.- Parameters:
name
- The positioned item with the name of the sequence flow, the dimensions of the label text, and its position.- Returns:
- This builder for chaining method calls.
-
name
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder name(IWorkflowBpmnAlignmentItem<StyledBpmnLabel,?> name, IWorkflowBpmnFlowEdgeNameConfigurator configurator)
Sets the name (label) of the sequence flow. Applicable only when the source is an initialflow node
where a sequence flow starts, not an intermediatestructured BPMN model part
. When set, sets the name on thesequence flow
and creates aBPMN label
forBPMN edge
with the appropriate position and dimensions.- Parameters:
name
- The item with the name of the sequence flow and the dimensions of the label text.configurator
- Configurator for computing the position of the label from the edge's waypoints.- Returns:
- This builder for chaining method calls.
-
toInPort
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder toInPort(IStructuredBpmnModelPartBuilder<?> part, Point2DDouble inPortPoint)
Sets the sequence flow's target to the in port of the given structured model part, using the given point as the in port point.- Parameters:
part
- The target part of the sequence flow.inPortPoint
- The in port point of the sequence flow, which is used as the last waypoint.- Returns:
- This builder for chaining method calls.
-
toInPort
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder toInPort(IStructuredBpmnModelPart part)
Sets the sequence flow's target to the in port of the given structured model part.- Parameters:
part
- The target part of the sequence flow.- Returns:
- This builder for chaining method calls.
-
toInPort
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder toInPort(IStructuredBpmnModelPartBuilder<?> part)
Sets the sequence flow's target to the in port of the given structured model part. Use the current in port as the target point.- Parameters:
part
- The target part of the sequence flow.- Returns:
- This builder for chaining method calls.
-
toOutPort
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder toOutPort(IStructuredBpmnModelPartBuilder<?> part, Point2DDouble outPortPoint)
Sets the sequence flow's target to the out port of the given structured model part, using the given point as the out port point.- Parameters:
part
- The target part of the sequence flow.outPortPoint
- The out port point of the sequence flow, which is used as the last waypoint.- Returns:
- This builder for chaining method calls.
-
toOutPort
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder toOutPort(IStructuredBpmnModelPart part)
Sets the sequence flow's target to the out port of the given structured model part.- Parameters:
part
- The target part of the sequence flow.- Returns:
- This builder for chaining method calls.
-
toOutPort
@CanIgnoreReturnValue IWorkflowBpmnFlowEdgeBuilder toOutPort(IStructuredBpmnModelPartBuilder<?> part)
Sets the sequence flow's target to the out port of the given structured model part. Use the current out port as the target point.- Parameters:
part
- The target part of the sequence flow.- Returns:
- This builder for chaining method calls.
-
-