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
View model for interoperability settings related to BPMN diagrams.
- Since:
- 8.4.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyFromSettings(IWorkflowBpmnLayoutSettings settings) Applies the settings from the givenIWorkflowBpmnLayoutSettingsinstance to this view model.voidApplies the settings from the givenFlowchartToBpmnConverterSettingsinstance to this view model.voidApplies the settings from this view model to the givenWorkflowBpmnLayoutSettings.Builderinstance.voidApplies the settings from this view model to the givenFlowchartToBpmnConverterSettings.Builderinstance.booleanWhether to always place in and out ports at the center of aBPMN shape'sside.booleanWhether to convert diagonalBpmnEdgeto axis-aligned edges.booleanGets whether to include values for attributes in the XML output even if they are equal to their default value.booleanWhether 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.
-
Constructor Details
-
InteroperabilitySettingsViewModel
public InteroperabilitySettingsViewModel()
-
-
Method Details
-
applyFromSettings
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
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
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
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.
-