NotifyAsigneeActionlet

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

NotifyAsigneeActionlet

Yasin
In dotCMS 4 we are using a custom Workflow which includes a NotifyAsigneeActionlet (we are sending out an email to the assignee).

The NotifyAsigneeActionlet uses the WorkflowEmailUtil class to send the email, which includes the URL to the workflow item.

We noticed that the URL that should redirect the assignee to the workflow item, is incorrect.

An example of the URL that should redirect the assignee to the workflow item:

http://www.your-domain.com/c/portal/layout?p_l_id=&p_p_id=workflow&p_p_action=1&p_p_state=maximized&p_p_mode=view&_workflow_struts_action=/ext/workflows/edit_workflow_task&_workflow_cmd=view&_workflow_taskId=89e4bdeb-246b-49a6-9103-043610125547

Once you visit this URL, you get redirected to a blank page containing the following error:


An unexpected system error occurred.

null

The reason that the URL does not work is because the parameter 'p_l_id' is empty. This is caused because the following line in the WorkFlowEmailUtil class is never true:

https://github.com/dotCMS/core/blob/044f2463efc7112283901b0da748b054a2ff7224/dotCMS/src/main/java/com/dotmarketing/portlets/workflows/util/WorkflowEmailUtil.java#L72

Replacing this line with if (lout.getPortletIds().contains(PortletID.WORKFLOW.toString())) { seems to fix it (just call toString()

Thanks

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/f832a1a2-cd66-4d7d-b205-26a7572aa3eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.