Alfresco 默认工作流程模板更改 [英] Alfresco default work flow template changing

查看:46
本文介绍了Alfresco 默认工作流程模板更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行 alfresco 5.0.a,我想修改默认的 activitiAdhoc 模板来设置任务的标题和描述.当通过脚本将文件添加到目录时,我会运行一个 activti 流程.我的脚本是.

I am running alfresco 5.0.a and I want to modify the default activitiAdhoc template to set the title and description of the task. I run an activti flow when a file is added to a directory via script. My script is.

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

Also i would like to change the template subject email. It currently says "You have been assigned a task" I have changed this in the workflow template as well as /opt/alfresco-5.0.a/tomcat/webapps/alfresco/WEB-INF/lib/alfresco/messages/notification-service.properties

我已将 bootstrap-context.xml 文件设置为针对临时默认值重新部署.重新启动,但仍然看不到 wf-email.ftl 或运行时的变化.

I have set bootstrap-context.xml file to redeploy for the ad hoc default. Restarted and still never see a change in the wf-email.ftl or when i run.

我该如何修改?我没有找到任何关于如何更改此设置的文档.

How do I modify this? No documentation I have found talks about how to change this.

推荐答案

要更改从工作流发送的通知电子邮件的主题,我执行了以下操作:

To change the subject of the notification email sent from a workflow, I did the following:

将notification-service.properties 文件复制到我的项目中,并更改assigned-task 字段的值.我将该文件放在我的项目中的位置是 srcmainampconfigalfrescomodule\messages

Copied the notification-service.properties file into my project, and changed the value of the assigned-task field. The location I placed that file in my project was srcmainampconfigalfrescomodule\messages

我还在我的项目中添加了一个 spring bean,它指向那个文件.我把我的放在 srcmainampconfigalfrescomodule\contextservice-context.xml 中.(此 bean 覆盖了/repository/config/alfresco/notification-services-context.xml 中由 alfresco 提供的 bean)

I also added a spring bean to my project, which points to that file. I put mine in srcmainampconfigalfrescomodule\contextservice-context.xml. (This bean overrides the one provided by alfresco in /repository/config/alfresco/notification-services-context.xml)

<bean id="notificationServiceResourceBundles" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
   <property name="resourceBundles">
      <list>
         <value>alfresco.module.${project.artifactId}.messages.notification-service</value>
      </list>
   </property>
</bean>

这篇关于Alfresco 默认工作流程模板更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆