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

SetWorkflowVariable does not set the value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.1
    • Fix Version/s: 9.3
    • Component/s: Automation, Workflow

      Description

      I have a the_var Wotkflow Variable. In the automation chain of the transition of a "Step1" task, I set up this variable using a simple chain:

      - Context.FetchDocument
      - Context.SetWorkflowVar:
          name: the_var
          value: "hello there!"
      

      Now, in the "inbound" automation step of Step#2, I just check this variable:

      - Context.FetchDocument
      - Log:
          level: warn
          message: "Value of the_var: @{WorkflowVariables[\"the_var\"]}"
      

      The value is null

      My original use case is more complex and problematic. The Workflow Variable is claimRep. In the transition, it is set using the CurrentUser, and the next task has a "dynamic assignee" basic expression...

      {{WorkflowVariables["claimRep"]}}
      

      This triggers errors, since...

      {{WorkflowVariables["claimRep"]}}
      

      ...returns null => Nuxeo can't assigns the task and breaks.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                5 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, 40 minutes
                  2d 40m