Class BpmnExportViewHelper
- java.lang.Object
-
- de.xima.fc.workflow.designer.bpmn.helper.BpmnExportViewHelper
-
public class BpmnExportViewHelper extends Object
Helper class for logic related to the Workflow BPMN export view.- Since:
- 8.4.0
-
-
Constructor Summary
Constructors Constructor Description BpmnExportViewHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
applyPreset(EFlowchartToBpmnConverterSettingsPreset preset, BpmnExportSettingsViewModel exportSettings)
Applies the given preset to the export settings.static FlowchartToBpmnConverterInput
createBpmnConverterInput(IBaseWorkflowEnvironmentData env, DeserializedWorkflow workflow, ViewSettingsModel viewSettings)
static FlowchartToBpmnConverterSettings
createBpmnXmlSettings(BpmnExportSettingsViewModel exportSettings, Locale locale, boolean forVisualization)
static DeserializedWorkflow
deserializedWorkflow(ICrossViewScopeResponseData<String> responses, IBaseWorkflowEnvironmentData env)
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.static void
refreshAvailableTasks(ViewSettingsModel model, WorkflowProcess process)
Refreshes the givenViewSettingsModel
with the tasks from the givenWorkflowProcess
, preserving the selected tasks.
-
-
-
Method Detail
-
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
public static void refreshAvailableTasks(ViewSettingsModel model, WorkflowProcess process)
Refreshes the givenViewSettingsModel
with 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.
-
-