Class BpmnExportViewHelper
java.lang.Object
de.xima.fc.workflow.designer.bpmn.helper.BpmnExportViewHelper
Helper class for logic related to the Workflow BPMN export view.
- Since:
- 8.4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyPreset(EFlowchartToBpmnConverterSettingsPreset preset, BpmnExportSettingsViewModel exportSettings) Applies the given preset to the export settings.createBpmnConverterInput(IBaseWorkflowEnvironmentData env, DeserializedWorkflow workflow, ViewSettingsModel viewSettings) createBpmnXmlSettings(BpmnExportSettingsViewModel exportSettings, Locale locale, boolean forVisualization) static DeserializedWorkflowdeserializedWorkflow(ICrossViewScopeResponseData<String> responses, IBaseWorkflowEnvironmentData env) static voidlogConversionIssues(de.xima.bpmn_model.api.xml.XmlValidationResult validationResult, long projectId) When issues occurred during the conversion process, log those issues and add a Faces message for each issue.static voidrefreshAvailableTasks(ViewSettingsModel model, WorkflowProcess process) Refreshes the givenViewSettingsModelwith the tasks from the givenWorkflowProcess, preserving the selected tasks.
-
Constructor Details
-
BpmnExportViewHelper
public BpmnExportViewHelper()
-
-
Method Details
-
applyPreset
public static void applyPreset(EFlowchartToBpmnConverterSettingsPreset preset, BpmnExportSettingsViewModel exportSettings) Applies the given preset to the export settings.- Parameters:
preset- The preset to apply.exportSettings- The export settings to which the preset should be applied.
-
createBpmnConverterInput
public static FlowchartToBpmnConverterInput createBpmnConverterInput(IBaseWorkflowEnvironmentData env, DeserializedWorkflow workflow, ViewSettingsModel viewSettings) -
createBpmnXmlSettings
public static FlowchartToBpmnConverterSettings createBpmnXmlSettings(BpmnExportSettingsViewModel exportSettings, Locale locale, boolean forVisualization) -
deserializedWorkflow
public static DeserializedWorkflow deserializedWorkflow(ICrossViewScopeResponseData<String> responses, IBaseWorkflowEnvironmentData env) throws FastJsonException - Throws:
FastJsonException
-
logConversionIssues
public static void logConversionIssues(de.xima.bpmn_model.api.xml.XmlValidationResult validationResult, long projectId) When issues occurred during the conversion process, log those issues and add a Faces message for each issue.- Parameters:
validationResult- The result of the validation of the BPMN XML.projectId- The ID of the project for which the conversion was performed.
-
refreshAvailableTasks
Refreshes the givenViewSettingsModelwith the tasks from the givenWorkflowProcess, preserving the selected tasks.- Parameters:
model- The model to refresh.process- The workflow process from which to get the tasks.
-