Alfresco定制模型 - 未在worklow中显示

时间:2016-08-10 17:38:50

标签: alfresco alfresco-share

我正在尝试向标准adhoc工作流程添加文本字段,但该字段永远不会出现在屏幕上。我已经尝试在视图中添加了一些其他标准的bpm:字段,它们会显示但不会显示自定义字段。

我有什么明显的遗失吗?

我克隆了工作流程并添加了以下内容。

工作流程模型:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Definition of new Model -->
<model name="lhwf:workflowmodel"
xmlns="http://www.alfresco.org/model/dictionary/1.0">

<!-- Optional meta-data about the model -->
<description>Workflow Model</description>
<author>O</author>
<version>1.0</version>

<!-- Imports are required to allow references to definitions in other models -->
<imports>
    <import uri="http://www.alfresco.org/model/dictionary/1.0"
        prefix="d" />
    <import uri="http://www.alfresco.org/model/bpm/1.0"
        prefix="bpm" />
    <import uri="http://www.alfresco.org/model/workflow/1.0" 
    prefix="wf"/>
</imports>

<!-- Introduction of new namespaces defined by this model -->
<namespaces>
    <namespace uri="http://www.test.com/model/workflow/1.0"
        prefix="lhwf" />
</namespaces>

<types>
    <type name="lhwf:submitMyTask">
        <parent>bpm:startTask</parent>
        <properties>
            <property name="lhwf:actionRequired">
                <type>d:text</type>
                <mandatory>true</mandatory>
                <multiple>false</multiple>
            </property>
        </properties>
    </type>
</types>
</model>

share-config-custom.xml文件如下所示

<alfresco-config>
   <config evaluator="string-compare" condition="activiti$activitiAdhoc2">
   <forms>
       <form>
           <field-visibility>
               <show id="bpm:workflowDescription" />
               <show id="lhwf:actionRequired" />
               <show id="bpm:workflowDueDate" />
            `  <show id="bpm:workflowPriority" />
               <show id="bpm:assignee" />
               <show id="packageItems" />
               <show id="bpm:sendEMailNotifications" />
           </field-visibility>
           <appearance>
               <set id="" appearance="title" label-id="workflow.set.general" />
               <set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="assignee" appearance="title" label-id="workflow.set.assignee" />
               <set id="items" appearance="title" label-id="workflow.set.items" />
               <set id="other" appearance="title" label-id="workflow.set.other" />

               <field id="bpm:workflowDescription" label="Title">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl">
                 <control-param name="style">width: 95%</control-param>
              </control>
           </field>
           <field id="lhwf:actionRequired" label="Action Required" set="info" />
           <field id="bpm:workflowDueDate" label-id="workflow.field.due" set="info">
              <control template="/org/alfresco/components/form/controls/date.ftl">
                     <control-param name="showTime">false</control-param>
                     <control-param name="submitTime">false</control-param>
              </control>
           </field>
           <field id="bpm:workflowPriority" label-id="workflow.field.priority" set="info">
              <control template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
           </field>
           <field id="bpm:assignee" label-id="workflow.field.assign_to" set="assignee" />
           <field id="packageItems" set="items" />
           <field id="bpm:sendEMailNotifications" set="other">
              <control template="/org/alfresco/components/form/controls/workflow/email-notification.ftl" />
           </field>
        </appearance>
     </form>
  </forms>
</config>

提前致谢 0

1 个答案:

答案 0 :(得分:0)

我会推荐以下内容。

<show id="lhwf:actionRequired" force="true"/>

请在这里分享bpmn文件吗?

相关问题