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

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

问题描述

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

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字段的值。我将该文件放在项目中的位置是\src\main\amp\config\alfresco\module\\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 \src\main\amp\config\alfresco\module\\messages

我也在我的项目中添加了一个spring bean,它指向该文件。我将我的文件放在 src主 amp配置 alfresco模块 context service-context.xml中。 (此bean会覆盖alfresco在/repository/config/alfresco/notification-services-context.xml中提供的那个)。

I also added a spring bean to my project, which points to that file. I put mine in \src\main\amp\config\alfresco\module\\context\service-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天全站免登陆