AnsweredAssumed Answered

I can't modify my custom workflow form

Question asked by vincent_roye on Dec 31, 2013
Latest reply on Dec 31, 2013 by vincent_roye
Hi,

I would like to add a new field to my custom workflow form. It has to be a select list of all the active sites.

The custom workflow is defined in the activiti bpmn20 file starting with :

<process id="DocGen" name="Send Course Documents" isExecutable="true">


and then I try to edit this file :

/Applications/alfresco-4.2.e/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml

I have added this config:


<config evaluator="string-compare" condition="activiti$DocGen">
   <forms>
      <form>
         <field-visibility>
            <hide id="bpm:workflowDescription" />
            <show id="bpm:workflowDueDate" />
            <hide id="bpm:workflowPriority" />
            <show id="wf:workDescription" />
            <show id="packageItems" />  
            <hide id="bpm:comment" />
              <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="items" appearance="title" label-id="workflow.set.items" />
            <set id="work" appearance="title" label-id="workflow.set.work" />          
            <set id="other" appearance="title" label-id="workflow.set.other" />
            <set id="response" appearance="title" label-id="workflow.set.response" />
            <field id="bpm:workflowDescription" label-id="workflow.field.message">
               <control template="/org/alfresco/components/form/controls/textarea.ftl">
                  <control-param name="style">width: 95%</control-param>
               </control>
            </field>
      
            <field id="bpm:workflowDueDate" label-id="workflow.field.due" set="info" />
<!–             <field id="bpm:workflowPriority" label-id="workflow.field.priority" set="info"> –>
               <control template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
            </field>
            <field id="packageItems" set="items" />
<!–             <field id="wf:workDescription" set="work" />  –>   
            <field id="bpm:sendEMailNotifications" set="other">
               <control template="/org/alfresco/components/form/controls/workflow/email-notification.ftl" />
            </field>
            <field id="bpm:comment" label-id="workflow.field.comment" set="response">
               <control template="/org/alfresco/components/form/controls/textarea.ftl" />
            </field>
         </appearance>
      </form>
   </forms>
</config>


But I can't see any changes. I would like to try to remove something before I add the select list.

Can anyone help me ?

thanks

Outcomes