public class WorkflowCombiner extends Object
| Constructor and Description |
|---|
WorkflowCombiner() |
| Modifier and Type | Method and Description |
|---|---|
static void |
combineWorkflows(WorkflowJson targetOriginalWorkflow,
WorkflowJson overlayWorkflow)
Combines (merges) two workflow objects.
|
public static void combineWorkflows(WorkflowJson targetOriginalWorkflow, WorkflowJson overlayWorkflow)
ProcessingRuleJson has
a name "Metadata Processing" and the overlayWorkflow also has a ProcessingRuleJson with the same
name ("Metadata Processing"), properties of the processing rule in the overlay will be merged into the original
workflow. Merging will either extend the original workflow or will override values in the original object.
If a particular value is not set in the original workflow, it will be added. If it exists - it will be overridden.
There is an option to force complete replacement behaviour. ProcessingRuleJson and ActionJson have
MergeMode property. If this property is set to REPLACE, values in matched (by name) in
Processing Rule or Action will replace values in the targetOriginalWorkflow.
MergeMode value for both objects defaults to MERGE.targetOriginalWorkflow - a base workflow to which apply the overrides and / or extensionsoverlayWorkflow - a workflow object with overrides and / or extensionsCopyright © 2015–2017 Hewlett Packard Enterprise Development LP. All rights reserved.