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

Error when resolving

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 7.10-HF03
    • Fix Version/s: None
    • Component/s: Notifications

      Description

      The resolution of custom mail template when sending the task assigned notification does not work.

      <notification name="Task assigned" channel="email" enabled="true" availableIn="Workspace"
            autoSubscribed="true" template="workflowTaskAssigned" templateExpr="NotificationContext['taskInstance'].getVariable('taskNotificationTemplate')" 
            subject="Validation required for asset ${docTitle}"  label="label.nuxeo.notifications.appReviewStarted">
          <event name="workflowTaskAssigned"/>
      </notification>

      It throws this error :

      [Error: unable to resolve method: org.nuxeo.ecm.core.api.InstanceRef.getVariable(java.lang.String) [arglength=1]]
      [Near : {... NotificationContext['taskInsta ....}]
                   ^
      [Line: 1, Column: 1]

      Because of that, it always falls back on the default template 'workflowTaskAssigned'.

      By the way, the error is logged on debug mode, it should be an error instead.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: