我正在运行 alfresco 5.0.a,我想修改默认的 activitiAdhoc 模板来设置任务的标题和描述。当通过脚本将文件添加到目录时,我运行 activti 流程。我的剧本是。
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "activiti$activitiAdhoc";
workflow.parameters["bpm:sendEMailNotifications"] = true;
workflow.parameters["wf:notifyMe"] = true;
workflow.parameters["wf:workflowDescription"] = "A workflow task has been completed. ";
workflow.parameters["bpm:assignee"] = people.getPerson("admin");
workflow.parameters["wf:workflowTitle"] = "Please generate a cover letter for";
var futureDate = new Date();
futureDate.setDate(futureDate.getDate() + 7);
workflow.parameters["bpm:workflowDueDate"] = futureDate;
workflow.execute(document);
我还想更改模板主题电子邮件。目前显示“您已被分配一项任务”我已在工作流程模板中更改了此设置以及
/opt/alfresco-5.0.a/tomcat/webapps/alfresco/WEB-INF/lib/alfresco/messages/notification-service.properties
我已将 bootstrap-context.xml 文件设置为重新部署为临时默认值。重新启动,但在 wf-email.ftl 或我运行时仍然看不到任何变化。
我该如何修改这个?我找到的任何文档都没有讨论如何更改此设置。
要更改从工作流程发送的通知电子邮件的主题,我执行了以下操作:
将 notification-service.properties 文件复制到我的项目中,并更改分配任务字段的值。我将该文件放置在项目中的位置是 \src\main\amp\config\alfresco\module\\messages
我还在我的项目中添加了一个 spring bean,它指向该文件。我把我的放在 \src\main\amp\config\alfresco\module\\context\service-context.xml 中。 (此 bean 会覆盖 alfresco 在 /repository/config/alfresco/notification-services-context.xml 中提供的 bean)
<bean id="notificationServiceResourceBundles" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>alfresco.module.${project.artifactId}.messages.notification-service</value>
</list>
</property>
</bean>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)