Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-7752

Merge arrays should replace by default

    XMLWordPrintable

Details

    • False
    • None
    • False
    • 0
    • 0% 0%
    • ---
    • ---

    Description

      For serverless workflow, array merging should basically replace the src property array with the target property array.
      So we are going to change the interpretaion of the boolean parameter of MergeUtils.merge
      Before this JIRA, the code always try to merge the two arrays (an union), and the boolean just indicates if duplicates should be skipped
      Now the boolean indicated whether the array should be merged (true) or replaced (false). Therefore true is equivalent to previous behaviour when skipDuplicate was true (this is the expected behaviour for JsonSchema generation), And by default (false), the array will be replaces, which is the desired behaviour for Serverless Workflow action

      Attachments

        Activity

          People

            ftirados Francisco Javier Tirado Sarti
            ftirados Francisco Javier Tirado Sarti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: