Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30658

Fix Task marshaller when workflow schema prefix is different from the name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF58, 2021.15
    • Component/s: Workflow
    • Release Notes Summary:
      The Task marshaller supports workflow and node schemas with a prefix different from the schema name.
    • Backlog priority:
      600
    • Upgrade notes:
      Hide

      The workflow and node schemas can now have a prefix different from the schema name.

      Show
      The workflow and node schemas can now have a prefix different from the schema name.
    • Sprint:
      nxplatform #52

      Description

      In the method TaskCompletionRequestJsonReader#getVariables, the workflow properties are written with this syntax

      variable.put(property.getName().substring(schemaName.length() + 1), property.getValue());
      

      as you can see, the key is based on the length of the workflow schema name, but the property name is built from the schema prefix. So if the schema name length is different from the schema prefix length, an incorrect key will be used and the Task widget in the UI won't be able to read the workflow properties.

      A workaround has been suggested to use the same value for the schema name and prefix, but a fix would be a better long-term solution.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: