cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow form problem

luxman99
Champ in-the-making
Champ in-the-making
As you see in the picture, the field of user's selection doesn't show. Here is the part of share-worflow-form-config.xml file that matchs the form:


<config evaluator="string-compare" condition="activiti$myProcess">
      <forms>
         <form>
            <field-visibility>
               <show id="bpm:workflowDescription" />
               <show id="bpm:workflowDueDate" />
               <show id="bpm:workflowPriority" />
               <show id="wf:workDescription" />
               <show id="packageItems" />
               <show id="bpm:assignee" />
               <show 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="assignee" appearance="title" label-id="workflow.set.assignee" />
               <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:assignee" label-id="workflow.field.assign_to" set="assignee" />
               <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>
4 REPLIES 4

rjohnson
Star Contributor
Star Contributor
I have looked at your form definition and compared it to one of my own. Now, mine uses groups not users, but your config looks perfectly fine to me. Have you run your browser in debug mode to see if you get any Javascript errors?

luxman99
Champ in-the-making
Champ in-the-making
Yes, and I haven't located any error.

luxman99
Champ in-the-making
Champ in-the-making
I've found that the problem isn't specefic for my custom workflow ( which looks correct ) but even the simple Alfresco workflows  that require to select an assignee have the same problem. Did I need to re setup Alfresco ?

rjohnson
Star Contributor
Star Contributor
Have you checked alfresco.log / share.log and catalina.out for errors? and have you checked your browser debug for a missing JS file (i.e. error 404 on trying to load a script file)? It sounds as if something is missing to do with the object finder. My first guess would be a missing JS file but it could be an FTL file or you could be getting an error on a webscript which is aborting the client side JS.