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

Make the workflow rest api support multi valued variables

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.10
    • Fix Version/s: 7.10-HF06, 8.2
    • Component/s: Rest API, Workflow
    • Tags:
    • Upgrade notes:
      Hide

      The only way to post multi value variable to complete a task or start a workflow used to be to submit a string representing an escaped json array (i.e."[\"user:Administrator\"]").

      This is now fixed and real array can be posted.

      The nuxeo.document.routing.json.format.legacy runtime property allows to accept escaped json array for multi value variables.

      Also, `entity-type` field is mandatory on all endpoint parameters

      Show
      The only way to post multi value variable to complete a task or start a workflow used to be to submit a string representing an escaped json array (i.e." [\"user:Administrator\"] "). This is now fixed and real array can be posted. The nuxeo.document.routing.json.format.legacy runtime property allows to accept escaped json array for multi value variables. Also, `entity-type` field is mandatory on all endpoint parameters
    • Sprint:
      nxNag Sprint 8.2.1

      Description

      It is not possible to manipulate list or arrays with the Workflow REST API , for instance the participants cannot be set when completing a task using the /api/v1/task/{taskId}/{action} end point.

      The culprit should be JsonEncodeDecodeUtils#decodeVariables, which only handles number or text values.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: