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 voidapplyFromSettings(IWorkflowBpmnLayoutSettings settings)Applies the settings from the givenIWorkflowBpmnLayoutSettingsinstance to this view model.voidapplyFromSettings(FlowchartToBpmnConverterSettings settings)Applies the settings from the givenFlowchartToBpmnConverterSettingsinstance to this view model.voidapplyToBuilder(WorkflowBpmnLayoutSettings.Builder builder)Applies the settings from this view model to the givenWorkflowBpmnLayoutSettings.Builderinstance.voidapplyToBuilder(FlowchartToBpmnConverterSettings.Builder builder)Applies the settings from this view model to the givenFlowchartToBpmnConverterSettings.Builderinstance.booleanisAlwaysCenterPorts()Whether to always place in and out ports at the center of aBPMN shape'sside.booleanisAxisAlignDiagonalConnections()Whether to convert diagonalBpmnEdgeto axis-aligned edges.booleanisIncludeDefaultValuesInXml()Gets whether to include values for attributes in the XML output even if they are equal to their default value.booleanisInlineEventDefinitionReferences()Whether to inlinereferencestoEventDefinition.voidsetAlwaysCenterPorts(boolean alwaysCenterPorts)Sets whether to always place in and out ports at the center of aBPMN shape'sside.voidsetAxisAlignDiagonalConnections(boolean axisAlignDiagonalConnections)Sets whether to convert diagonalBpmnEdgeto axis-aligned edges.voidsetIncludeDefaultValuesInXml(boolean includeDefaultValuesInXml)Sets whether to include values for attributes in the XML output even if they are equal to their default value.voidsetInlineEventDefinitionReferences(boolean inlineEventDefinitionReferences)Sets whether to inlinereferencestoEventDefinition.
-
-
-
Method Detail
-
applyFromSettings
public void applyFromSettings(FlowchartToBpmnConverterSettings settings)
Description copied from class:ASettingsViewViewModelApplies the settings from the givenFlowchartToBpmnConverterSettingsinstance to this view model.- Specified by:
applyFromSettingsin classASettingsViewViewModel- Parameters:
settings- The settings to apply.
-
applyFromSettings
public void applyFromSettings(IWorkflowBpmnLayoutSettings settings)
Description copied from class:ASettingsViewViewModelApplies the settings from the givenIWorkflowBpmnLayoutSettingsinstance to this view model.- Specified by:
applyFromSettingsin classASettingsViewViewModel- Parameters:
settings- The settings to apply.
-
applyToBuilder
public void applyToBuilder(FlowchartToBpmnConverterSettings.Builder builder)
Description copied from class:ASettingsViewViewModelApplies the settings from this view model to the givenFlowchartToBpmnConverterSettings.Builderinstance.- Specified by:
applyToBuilderin classASettingsViewViewModel- Parameters:
builder- The builder to apply settings to.
-
applyToBuilder
public void applyToBuilder(WorkflowBpmnLayoutSettings.Builder builder)
Description copied from class:ASettingsViewViewModelApplies the settings from this view model to the givenWorkflowBpmnLayoutSettings.Builderinstance.- Specified by:
applyToBuilderin 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'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.
-
setAlwaysCenterPorts
public void setAlwaysCenterPorts(boolean alwaysCenterPorts)
Sets 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.- Parameters:
alwaysCenterPorts- true to always center ports on the shape's side, false otherwise.
-
isAxisAlignDiagonalConnections
public boolean isAxisAlignDiagonalConnections()
Whether to convert diagonalBpmnEdgeto 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 diagonalBpmnEdgeto 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 inlinereferencestoEventDefinition. 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 inlinereferencestoEventDefinition. 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.
-
-