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

Fn.calendar is not exposed for its use in Automation chain/scripts

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Automation

      Description

      • 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:

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 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 - 5 hours
                  5h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.