-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 7.10-HF03
-
Fix Version/s: None
-
Component/s: Notifications
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.
- duplicates
-
NXP-18332 Workflow should not send default notifications when a mail template is selected
- Resolved