AnsweredAssumed Answered

Share not rendering all custom field

Question asked by darkredd on Apr 29, 2015
Latest reply on Apr 30, 2015 by darkredd
Good day all,

I am not sure if this will be the right place as this is part of workflows; however is the share config part.
I have a model defined which works fine when use directly in document library, however the share config of the workflow with the same properties does not show.

Here is my share config for the workflow:

   <config evaluator="string-compare" condition="activiti$psaregistrysystem">
      <forms>
         <form>
            <field-visibility>
               <show id="bpm:workflowDescription" />
               <show id="bpm:workflowDueDate" />
               <show id="psa:seqID" />
               <show id="psa:source" />
               <show id="psa:recipient" />
               <show id="psa:reminderDate" />
               <show id="psa:email" />
               <show id="psa:cellphone" />
               <show id="psa:history" />
               <show id="mes:assignee" />
               <show id="packageItems" />
            </field-visibility>
            <appearance>
               <set id="info" appearance="Monitoring and Evaluation System" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="items" appearance="title" label-id="Attachments" />
               
               <field id="bpm:workflowDescription" label-id="workflow.field.message" mandatory="true">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl">
                     <control-param name="style">width: 95px</control-param>
                  </control>
               </field>
               <field id="bpm:workflowDueDate" label-id="workflow.field.dueDate" set="info" mandatory="true">
                  <control template="/org/alfresco/components/form/controls/date.ftl">
                     <control-param name="showTime" mandatory="true">true</control-param>
                     <control-param name="submitTime" mandatory="true">true</control-param>
                  </control>
               </field>
               
               <field id="mes:assignee" mandatory="true" set="info"/>
            <field id="psa:seqID" mandatory="true" set="info"/> //does not show on share
            <field id="psa:source" mandatory="true" set="info"/> //does not show on share
            <field id="psa:recipient" label-id="Recipient" mandatory="true" set="info"/>
            <field id="psa:reminderDate" label-id="Reminder" set="info">
              <control template="/org/alfresco/components/form/controls/date.ftl">
               <control-param name="showTime" mandatory="true">true</control-param>
               <control-param name="submitTime" mandatory="true">true</control-param>
              </control>
            </field>
            <field id="psa:email" mandatory="true" set="info" >
              <control template="/org/alfresco/components/form/controls/textfield.ftl" >
               <control-param name="style">width: 75px</control-param>
            </control>
            </field>
            <field id="psa:cellphone" mandatory="true" set="info" >
               <control template="/org/alfresco/components/form/controls/number.ftl">
               <control-param name="maxLength">10</control-param>                     
                  </control>
               </field>
               <field id="psa:history" label-id="History" mandatory="true" set="info" >
                  <control template="/org/alfresco/components/form/controls/textarea.ftl" >
                     <control-param name="style">width: 50px</control-param>
                  </control>
               </field>
               <field id="packageItems" set="items" mandatory="true" />
            </appearance>
         </form>
      </forms>
   </config>


All the field with prefix "psa" are defined elsewhere, only {psa:source, psa:recipient} which are persons objects; do not show on the form whereelse others do show.

Is there a particular way to add them to the form since they are associations on the defining model?:

<type name="psa:registry">
         <title>Document Type</title>
         <parent>cm:content</parent>
         <properties>
            <property name="psa:seqID">
               <title>SEQUENCE ID</title>
               <type>d:text</type>
            </property>
            <property name="psa:reminderDate">
               <title>Reminder Dates</title>
               <type>d:date</type>
            </property>
            <property name="psa:cellphone">
               <title>Contact Number</title>
               <type>d:int</type>
            </property>
            <property name="psa:email">
               <title>Email Address</title>
               <type>d:text</type>
            </property>
            <property name="psa:history">
               <title>History</title>
               <type>d:text</type>
            </property>
         </properties>
         <associations>
            <association name="psa:source">
               <title>Document Source</title>
               <source>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </source>
               <target>
                  <class>cm:person</class>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </target>
            </association>
            <association name="psa:recipient">
               <title>Document Recipient</title>
               <source>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </source>
               <target>
                  <class>cm:person</class>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </target>
            </association>
         </associations>         
      </type>


I did try to add a person object defined in the same model as the WF model and that works perfectly.

Help much appreciated.

Outcomes