Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-4124

ctx.currentUser.name does not work from Automation scripting

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 62
    • Fix Version/s: 66
    • Component/s: Automation

      Description

      Nuxeo Studio offers the completion ctx.currentUser.name when you type in "currentuser". This does not work when the script is executed (NPE). Workaround: use currentUser.name

      Same for:

      • ctx.currentDate
      • ctx.currentDocument
        and all other ctx.something options

      TODO

      • Automation scripting should suggest values that actually work: either populate ctx with the actual values (preferred as it would allow people to search for ctx to find all useful values), or fix the suggestion (e.g. suggest currentUser instead of ctx.currentUser).

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h