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 ofIWorkflowBpmnLayoutSettingswith a builder.- Since:
- 8.4.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFlowchartToBpmnConverterSettings.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanalwaysCenterPorts()Whether to always place in and out ports at the center of aBPMN shape'sside.booleanaxisAlignDiagonalConnections()When enabled, convertswaypointsofBPMNEdgethat form a non axis-aligned diagonal path to an axis-aligned path.static FlowchartToBpmnConverterSettings.Builderbuilder()Create a new builder for the settings used byFlowchartToBpmnConverter.booleanincludeDefaultValuesInXml()Whether to include values for attributes in the XML output even if they are equal to their default value.booleaninlineEventDefinitionReferences()When enabled, affectseventswitheventDefinitionReferences.Localelocale()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'sside. Defaults to false. Some BPMN tools only allowBPMN edgesto 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, convertswaypointsofBPMNEdgethat 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, affectseventswitheventDefinitionReferences. 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.
-
-