Studio Developer Manual / Version 2406.0
Table Of ContentsFor the Synchronization Workflow, a custom merge strategy can be added to the merge strategy chooser of the Start Synchronization Workflow Panel.
This customization requires a change for the Studio client and the Workflow Server. The change for Studio client is described in this section, for customization of the workflow-server refer to Section, “ AutoMergeSyncAction ” in Blueprint Developer Manual .
Adding a merge strategy for a synchronization workflow on the Studio client side
is simply done via the WorkflowLocalizationRegistry
as shown in the following example.
import CustomSyncWorkflow_properties from "./CustomSyncWorkflow_properties"; import { workflowLocalizationRegistry } from "@coremedia/studio-client.workflow-plugin-models/WorkflowLocalizationRegistry"; workflowLocalizationRegistry._.addMergeStrategyLocalization( "CustomSyncWorkflow", "newMergeStrategy", { displayName: CustomSyncWorkflow_properties.newMergeStrategy_displayName, description: CustomSyncWorkflow_properties.newMergeStrategy_description });
Example 9.111. Adding a New Merge Strategy
Workflow Validation Settings
Just as for translation workflows, a preview of dependent contents is calculated when starting a synchronization workflow. As this may take a considerable amount of time to evaluate for huge changesets, limits can be configured within Spring configuration properties as well as within content settings.
Here, synchronization shares the same settings as for the translation workflow (both summarized as localization workflows). For available configuration options take a look at Section “Workflow Validation Settings”.