Alfresco:如何更改自定义工作流程的启动任务名称?

时间:2014-09-12 14:25:22

标签: workflow alfresco activiti

我希望工作流程详细信息页面显示启动任务的描述性名称,而不是历史记录表格中的表单ID。 userTasks的name属性工作正常,但我无法在startEvent上运行它。如下所示:

<startEvent id="start" name="Início" activiti:initiator="initiatorUserName"
                activiti:formKey="workflowdocumentrequest:start">

<userTask id="userTask1" name="Revisão da Requisição de Documento Físico"
              activiti:assignee="${workflowdocumentrequest_destination.properties.userName}"
              activiti:formKey="workflowdocumentrequest:review">

Name of start task not showing

我该怎么做?

1 个答案:

答案 0 :(得分:6)

好吧,如果您使用Activiti在Alfresco中开发自定义高级工作流程,则应该查看this Jeff Pots guide。 除此之外,为了在开始事件中使用自定义字符串,您应该熟悉内容建模和i18n属性文件。 因此,对于startEvent,您应该有一个特定的工作流模型,声明workflowdocumentrequest:start类型,类似于此:

<type name="workflowdocumentrequest:start">
    <parent>bpm:startTask</parent>
 ...
</type>

对于该工作流内容模型,您应该在名为messages的{​​{1}}文件夹中包含特定的i18n文件。 你应该有这样的东西: workflowdocumentrequestWorkflow.properties

workflowdocumentrequestWorkflow_workflowmodel.type.workflowdocumentrequestWorkflow_start.title=Início部分是您的workflowdocumentrequestWorkflow_workflowmodel(您在工作流内容模型xml文件namespacePrefixShortname_yourWorkflowModelName开头使用的部分。 <model name="workflowdocumentrequestWorkflow:workflowmodel xmlns="http://www.alfresco.org/model/dictionary/1.0">显然是启动事件任务的自定义类型。 .type.是xml中的类型名称。 Activiti引擎和i18n文件可以用workflowdocumentrequestWorkflow_start而不是_编写。

希望它有所帮助。 干杯

相关问题