Class FlowchartToBpmnConverterSettings
- java.lang.Object
-
- de.xima.fc.workflow.converter.bpmn.FlowchartToBpmnConverterSettings
-
- All Implemented Interfaces:
Serializable
public final class FlowchartToBpmnConverterSettings extends Object implements Serializable
Default implementation ofIWorkflowBpmnLayoutSettings
with a builder.- Since:
- 8.4.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FlowchartToBpmnConverterSettings.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
alwaysCenterPorts()
Whether to always place in and out ports at the center of aBPMN shape's
side.boolean
axisAlignDiagonalConnections()
When enabled, convertswaypoints
ofBPMNEdge
that form a non axis-aligned diagonal path to an axis-aligned path.static FlowchartToBpmnConverterSettings.Builder
builder()
Create a new builder for the settings used byFlowchartToBpmnConverter
.boolean
includeDefaultValuesInXml()
Whether to include values for attributes in the XML output even if they are equal to their default value.boolean
inlineEventDefinitionReferences()
When enabled, affectsevents
witheventDefinitionReferences
.Locale
locale()
Gets the locale to use for localized messages in the BPMN diagram.
-
-
-
Method Detail
-
alwaysCenterPorts
public boolean alwaysCenterPorts()
Whether to always place in and out ports at the center of aBPMN shape's
side. Defaults to false. Some BPMN tools only allowBPMN edges
to connect to specific points on the shape. This setting may improve compatibility with such tools.- Returns:
- Whether to always center ports on the shape's side.
-
axisAlignDiagonalConnections
public boolean axisAlignDiagonalConnections()
When enabled, convertswaypoints
ofBPMNEdge
that form a non axis-aligned diagonal path to an axis-aligned path. This is done by approximating the diagonal path with a series of axis-aligned segments. May be useful for tools that don't support diagonal connections.- Returns:
- Whether to convert diagonal connections to axis-aligned connections.
-
includeDefaultValuesInXml
public boolean includeDefaultValuesInXml()
Whether to include values for attributes in the XML output even if they are equal to their default value. May improve compatibility with some tools that do not respect the default values as per the BPMN 2 standard.- Returns:
- Whether to include default values in the XML output.
-
inlineEventDefinitionReferences
public boolean inlineEventDefinitionReferences()
When enabled, affectsevents
witheventDefinitionReferences
. Creates a copy of the referenced event and inlines it viaeventDefinitions
. May be useful for tools that don't support that part of the BPMN spec. Defaults to false.- Returns:
- Whether to inline event definition references.
-
locale
public Locale locale()
Gets the locale to use for localized messages in the BPMN diagram.- Returns:
- The locale to use for the BPMN diagram, never null.
-
builder
public static FlowchartToBpmnConverterSettings.Builder builder()
Create a new builder for the settings used byFlowchartToBpmnConverter
.- Returns:
- A new builder.
-
-