Class WorkflowBpmnExportBean
- java.lang.Object
-
- de.xima.fc.workflow.designer.bpmn.bean.WorkflowBpmnExportBean
-
- All Implemented Interfaces:
Serializable
@ViewScoped @Named public class WorkflowBpmnExportBean extends Object implements Serializable
Controller bean for the BPMN editor of the flow graph. Allows exporting the flow chart as a BPMN file.- Since:
- 8.4.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WorkflowBpmnExportBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDownloadFileNamePng()
Gets the file name for the PNG export of the BPMN diagram.String
getDownloadFileNameSvg()
Gets the file name for the SVG export of the BPMN diagram.BpmnExportSettingsViewModel
getExportSettings()
Gets the view model with the settings for the BPMN export.ViewSettingsModel
getViewSettings()
Gets the view settings for the BPMN diagram, indicating what parts of the workflow should be rendered.void
onConvertAndRenderBpmnRequest()
When the button to visualize a task was clicked.void
onGetBpmnXmlForDownload()
Handler for the remote command to download the BPMN diagram as a BPMN 2 XML file.void
onPresetSelected(EFlowchartToBpmnConverterSettingsPreset preset)
When the user clicked on a preset the in the BPMN export settings UI.void
switchDirectionEast()
Arranges BPMN elements from left to right.void
switchDirectionNorth()
Arranges BPMN elements from bottom to top.void
switchDirectionSouth()
Arranges BPMN elements from top to bottom.void
switchDirectionWest()
Arranges BPMN elements from bottom to top.void
toggleCollapseSubProcesses()
Expands or collapses sub processes in the BPMN diagram.void
toggleColorize()
Enables or disables colors for the BPMN diagram.
-
-
-
Method Detail
-
getDownloadFileNamePng
public String getDownloadFileNamePng()
Gets the file name for the PNG export of the BPMN diagram.- Returns:
- The file name for the PNG export.
-
getDownloadFileNameSvg
public String getDownloadFileNameSvg()
Gets the file name for the SVG export of the BPMN diagram.- Returns:
- The file name for the SVG export.
-
getExportSettings
public BpmnExportSettingsViewModel getExportSettings()
Gets the view model with the settings for the BPMN export.- Returns:
- The BPMN export settings view model.
-
getViewSettings
public ViewSettingsModel getViewSettings()
Gets the view settings for the BPMN diagram, indicating what parts of the workflow should be rendered.- Returns:
- The view settings model containing the tasks and their rendering state.
-
onConvertAndRenderBpmnRequest
public void onConvertAndRenderBpmnRequest()
When the button to visualize a task was clicked.
-
onGetBpmnXmlForDownload
public void onGetBpmnXmlForDownload()
Handler for the remote command to download the BPMN diagram as a BPMN 2 XML file.
-
onPresetSelected
public void onPresetSelected(EFlowchartToBpmnConverterSettingsPreset preset)
When the user clicked on a preset the in the BPMN export settings UI. Applies the settings of the preset to the current export settings.
-
switchDirectionEast
public void switchDirectionEast()
Arranges BPMN elements from left to right.
-
switchDirectionNorth
public void switchDirectionNorth()
Arranges BPMN elements from bottom to top.
-
switchDirectionSouth
public void switchDirectionSouth()
Arranges BPMN elements from top to bottom.
-
switchDirectionWest
public void switchDirectionWest()
Arranges BPMN elements from bottom to top.
-
toggleCollapseSubProcesses
public void toggleCollapseSubProcesses()
Expands or collapses sub processes in the BPMN diagram.
-
toggleColorize
public void toggleColorize()
Enables or disables colors for the BPMN diagram.
-
-