-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Automation
-
Tags:
-
Backlog priority:501
-
Browser:
- Create an automation chain that use Fn.calendar, e.g.
- Context.FetchDocument - Document.AddPermission: permission: Read acl: local begin: "@{Fn.calendar(WorkflowVariables[\"startDate\"])}" blockInheritance: "false" comment: share me email: "moniquesdemo@gmail.com" end: "@{Fn.calendar(WorkflowVariables[\"endDate\"])}" notify: "false" username: John
- Execute the automation chain, e.g. from a workflow or an action button. You get this message:
Caused by: [Error: unable to resolve method: org.nuxeo.ecm.automation.features.PlatformFunctions.calendar(java.util.Date) [arglength=1]]
[Near :Unknown macro: {...Fn.calendar(WorkflowVariables[ ....}]
According to the Nuxeo Documentation Fn.calendar it's a valid expression to be used in automation scripts/chains:
Note: Fn.calendar it's not exposed for its use in automation scripts: