Class InteroperabilitySettingsViewModel
- java.lang.Object
-
- de.xima.fc.workflow.designer.bpmn.model.settings.ASettingsViewViewModel
-
- de.xima.fc.workflow.designer.bpmn.model.settings.InteroperabilitySettingsViewModel
-
- All Implemented Interfaces:
Serializable
public final class InteroperabilitySettingsViewModel extends ASettingsViewViewModel
View model for interoperability settings related to BPMN diagrams.- Since:
- 8.4.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InteroperabilitySettingsViewModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyFromSettings(IWorkflowBpmnLayoutSettings settings)
Applies the settings from the givenIWorkflowBpmnLayoutSettings
instance to this view model.void
applyFromSettings(FlowchartToBpmnConverterSettings settings)
Applies the settings from the givenFlowchartToBpmnConverterSettings
instance to this view model.void
applyToBuilder(WorkflowBpmnLayoutSettings.Builder builder)
Applies the settings from this view model to the givenWorkflowBpmnLayoutSettings.Builder
instance.void
applyToBuilder(FlowchartToBpmnConverterSettings.Builder builder)
Applies the settings from this view model to the givenFlowchartToBpmnConverterSettings.Builder
instance.boolean
isAlwaysCenterPorts()
Whether to always place in and out ports at the center of aBPMN shape's
side.boolean
isAxisAlignDiagonalConnections()
Whether to convert diagonalBpmnEdge
to axis-aligned edges.boolean
isIncludeDefaultValuesInXml()
Gets whether to include values for attributes in the XML output even if they are equal to their default value.boolean
isInlineEventDefinitionReferences()
Whether to inlinereferences
toEventDefinition
.void
setAlwaysCenterPorts(boolean alwaysCenterPorts)
Sets whether to always place in and out ports at the center of aBPMN shape's
side.void
setAxisAlignDiagonalConnections(boolean axisAlignDiagonalConnections)
Sets whether to convert diagonalBpmnEdge
to axis-aligned edges.void
setIncludeDefaultValuesInXml(boolean includeDefaultValuesInXml)
Sets whether to include values for attributes in the XML output even if they are equal to their default value.void
setInlineEventDefinitionReferences(boolean inlineEventDefinitionReferences)
Sets whether to inlinereferences
toEventDefinition
.
-
-
-
Method Detail
-
applyFromSettings
public void applyFromSettings(FlowchartToBpmnConverterSettings settings)
Description copied from class:ASettingsViewViewModel
Applies the settings from the givenFlowchartToBpmnConverterSettings
instance to this view model.- Specified by:
applyFromSettings
in classASettingsViewViewModel
- Parameters:
settings
- The settings to apply.
-
applyFromSettings
public void applyFromSettings(IWorkflowBpmnLayoutSettings settings)
Description copied from class:ASettingsViewViewModel
Applies the settings from the givenIWorkflowBpmnLayoutSettings
instance to this view model.- Specified by:
applyFromSettings
in classASettingsViewViewModel
- Parameters:
settings
- The settings to apply.
-
applyToBuilder
public void applyToBuilder(FlowchartToBpmnConverterSettings.Builder builder)
Description copied from class:ASettingsViewViewModel
Applies the settings from this view model to the givenFlowchartToBpmnConverterSettings.Builder
instance.- Specified by:
applyToBuilder
in classASettingsViewViewModel
- Parameters:
builder
- The builder to apply settings to.
-
applyToBuilder
public void applyToBuilder(WorkflowBpmnLayoutSettings.Builder builder)
Description copied from class:ASettingsViewViewModel
Applies the settings from this view model to the givenWorkflowBpmnLayoutSettings.Builder
instance.- Specified by:
applyToBuilder
in classASettingsViewViewModel
- Parameters:
builder
- The builder to apply settings to.
-
isAlwaysCenterPorts
public boolean isAlwaysCenterPorts()
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.
-
setAlwaysCenterPorts
public void setAlwaysCenterPorts(boolean alwaysCenterPorts)
Sets 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.- Parameters:
alwaysCenterPorts
- true to always center ports on the shape's side, false otherwise.
-
isAxisAlignDiagonalConnections
public boolean isAxisAlignDiagonalConnections()
Whether to convert diagonalBpmnEdge
to axis-aligned edges. May be needed for some tools that do not support diagonal edges.- Returns:
- true to convert diagonal edges to axis-aligned edges, false otherwise.
-
setAxisAlignDiagonalConnections
public void setAxisAlignDiagonalConnections(boolean axisAlignDiagonalConnections)
Sets whether to convert diagonalBpmnEdge
to axis-aligned edges. May be needed for some tools that do not support diagonal edges.- Parameters:
axisAlignDiagonalConnections
- true to convert diagonal edges to axis-aligned edges, false otherwise.
-
isIncludeDefaultValuesInXml
public boolean isIncludeDefaultValuesInXml()
Gets 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:
- true if default values should be included in the XML, false otherwise.
-
setIncludeDefaultValuesInXml
public void setIncludeDefaultValuesInXml(boolean includeDefaultValuesInXml)
Sets 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.- Parameters:
includeDefaultValuesInXml
- true if default values should be included in the XML, false otherwise.
-
isInlineEventDefinitionReferences
public boolean isInlineEventDefinitionReferences()
Whether to inlinereferences
toEventDefinition
. May be needed for some tools that do not support event definitions references.- Returns:
- true if event definition references should be inlined, false otherwise.
-
setInlineEventDefinitionReferences
public void setInlineEventDefinitionReferences(boolean inlineEventDefinitionReferences)
Sets whether to inlinereferences
toEventDefinition
. May be needed for some tools that do not support event definitions references.- Parameters:
inlineEventDefinitionReferences
- true if event definition references should be inlined, false otherwise.
-
-