2016-08-10 11 views
0

標準のアドホックワークフローにテキストフィールドを追加しようとしていますが、フィールドが画面に表示されません。私はいくつかの他の標準のbpm:フィールドをビューに追加しようとしましたが、表示されますがカスタムのものは表示されません。Alfrescoカスタムモデル - 作業中に表示されない

明らかに欠けていることはありますか?

私はワークフローをクローンし、以下を追加しました。

ワークフローモデル:

<?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> 

シェア-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> 

のように見えます事前に感謝 O

+0

独自のワークフローファイルを作成しましたか?はいの場合は、投稿してください。 – Akah

答えて

0

私が推薦します以下。

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

ここでbpmnファイルを共有できますか?

+0

ありがとう - そのトリックをしました。なぜそれを表示させるにはforce = "true"をする必要がありますか? – user1398017

+0

あなたのモデル+共有設定ファイルを配備し、あなたにこれを投稿させてください。 –

関連する問題