-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 62
-
Fix Version/s: 66
-
Component/s: Automation
-
Sprint:nxNest Sprint 9.3.2
-
Story Points:2
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).