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

Can't pass variables as a js object to Context.StartWorkflow

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Automation
    • Backlog priority:
      1,000
    • Sprint:
      nxGang Sprint 11.1.20, nxGang Sprint 11.1.21
    • Story Points:
      2

      Description

      The following example does not work.

      Context.StartWorkflow(examinationRequest , {
          'id': 'MyWorkflow',
          'start': true,
          'variables': {
             'approver':'Bob'
           }
        });
      

      Variables needs to be serialized as a string

      Context.StartWorkflow(examinationRequest , {
          'id': 'MyWorkflow',
          'start': true,
          'variables': "approver=Bob"
        });
      

      The same issue exist for the "namedParameters" parameter of the Repository.PageProvider operation

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              6 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 days, 2 hours
                2d 2h