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

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

    XMLWordPrintable

    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

        1. Captura de pantalla 2018-10-15 a las 15.00.48.png
          219 kB
          Joaquin Garzon Pena
        2. Captura de pantalla 2018-10-15 a las 15.48.34.png
          402 kB
          Joaquin Garzon Pena
        3. Captura de pantalla 2018-10-15 a las 15.52.38.png
          451 kB
          Joaquin Garzon Pena
        4. Captura de pantalla 2018-10-15 a las 15.52.46.png
          409 kB
          Joaquin Garzon Pena
        5. Captura de pantalla 2018-10-15 a las 15.53.04.png
          421 kB
          Joaquin Garzon Pena
        6. Captura de pantalla 2018-10-15 a las 15.58.34.png
          37 kB
          Joaquin Garzon Pena
        7. Captura de pantalla 2018-10-15 a las 16.11.49.png
          123 kB
          Joaquin Garzon Pena

          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