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

Set variables when the workflow is started from REST API

    Details

    • Release Notes Summary:
      Starting a workflow from the REST API endpoint uses the variables passed with the request.
    • Backlog priority:
      750
    • Sprint:
      nxplatform #18
    • Story Points:
      3

      Description

      The Workflow adapter does not take into account the workflow variables passed through the payload

      curl -X POST 'http://localhost:8080/nuxeo/api/v1/id/663bd92f-bc53-479d-b61d-f759e41daf51/@workflow?' -H 'Nuxeo-Transaction-Timeout: 3' -H 'X-NXproperties: *' -H 'X-NXRepository: default' -H 'content-type: application/json' -H 'content-type: application/json' -d ' { "entity-type" : "workflow", "workflowModelName" : "SerialDocumentReview", "variables" : { "initiatorComment" : "workflow start", "validationOrReview" : "review" } }' -u Administrator:<PASSWORD>
      

      After starting the workflow with this command, none of the workflow variables "initiatorComment" or "validationOrReview" will be set with the provided value.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.