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

Expose the assignees as a node variable

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.10-HF07
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Workflow

      Description

      In an automation chain, retrieving the assignees for a given node requires to use many operations, such as the following example:

      - Context.FetchDocument
      - Context.SetInputAsVar:
          name: zedocs
      - Context.RestoreDocumentInputFromScript:
          script: "This[0]"
      - Context.SetVar:
          name: docId
          value: "@{Document.id}"
      - Repository.Query:
          query: "SELECT * FROM TaskDoc WHERE ecm:isProxy = 0 AND ecm:isCheckedInVersion = 0 AND nt:type = '@{Context[\"nodeId\"]}' AND nt:targetDocumentId = '@{Context[\"docId\"]}' AND ecm:currentLifeCycleState NOT IN ('done', 'canceled')"
          language: NXQL
          sortOrder: ASC
      - Context.RestoreDocumentInputFromScript:
          script: "This[0]"
      - Context.SetVar:
          name: taskactors
          value: "@{Document[\"nt:actors\"]}"
      - Context.RestoreDocumentsInput:
          name: zedocs
      - Log:
          level: error
          message: "=========> @{Context[\"nodeId\"]} is assigned to @{Context[\"taskactors\"]}"
      

      => The value of nt:actors should be copied in the node variable named "assignees" automatically when entering the node.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bchauvin Bertrand Chauvin
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: