在工作流任务中添加自定义属性"工作流程我已经开始了#34;页面露天分享

时间:2017-06-22 12:26:34

标签: share alfresco alfresco-webscripts alfresco-enterprise

我需要在我已经开始的"工作流程中的任务行中添加自定义属性"默认情况下,一个任务栏/行包含诸如due,description,type和started之类的属性。如何自定义以沿/而不是这些属性添加我们的自定义属性。

1 个答案:

答案 0 :(得分:1)

您可以在表单配置中定义新表单,其ID为工作流程详细信息。查看share-workflow-form-config.xml以获取更多详细信息。以下是一个表格中的示例相同的文件,它定义了您提到的页面的属性。

<config evaluator="task-type" condition="bpm:startTask">
  <forms>
     <form id="workflow-details">
        <field-visibility>
           <show id="bpm:sendEMailNotifications" />
           <show id="packageItems" />
        </field-visibility>
        <appearance>
           <set id="" appearance="title" label-id="workflow.set.workflow.more_info" />
           <set id="items" appearance="title" label-id="workflow.set.items" />

           <field id="packageItems" set="items" />
        </appearance>
     </form>

     <form>
        <field-visibility>
           <show id="message" />
           <show id="taskOwner" />
           <show id="bpm:workflowPriority" />
           <show id="bpm:workflowDueDate" />
           <show id="bpm:taskId" />
           <show id="bpm:status" />
           <show id="packageItems" />
           <show id="bpm:sendEMailNotifications" />
        </field-visibility>
        <appearance>
           <set id="" appearance="title" label-id="workflow.set.task.info" />
           <set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl" />
           <set id="progress" appearance="title" label-id="workflow.set.task.progress" />
           <set id="items" appearance="title" label-id="workflow.set.items" />
           <set id="other" appearance="title" label-id="workflow.set.other" />

           <field id="message">
              <control template="/org/alfresco/components/form/controls/info.ftl" />
           </field>
           <field id="taskOwner" set="info" />
           <field id="bpm:taskId" set="info">
              <control template="/org/alfresco/components/form/controls/info.ftl" />
           </field>
           <field id="bpm:workflowPriority" label-id="workflow.field.priority" set="info" read-only="true">
              <control template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
           </field>
           <field id="bpm:workflowDueDate" set="info" label-id="workflow.field.due">
              <control template="/org/alfresco/components/form/controls/info.ftl" />
           </field>
           <field id="bpm:status" set="progress" />
           <field id="bpm:sendEMailNotifications" set="other" />
           <field id="packageItems" set="items" />
        </appearance>
     </form>
  </forms>