cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with task forms for version 4

leftright
Champ on-the-rise
Champ on-the-rise
I have recently succesfully instaled Alfresco 4.0.c.
But I have encountered a problem with forms for my jbpm workflow.
The forms for my Jbpm workflow worked fine on my old Alfresco version, that was version 3.4.d.
But now the same definition in share-config-custom.xml doesn't work anymore.
The weird thing is, that forms get picked up for the start task,
while the other tasks appear the same, as if there were no form definiton for them.
Here are the definitions in share-config-custom.xml:


   <config evaluator="string-compare" condition="jbpm$pogodbe:contractsApproval" replace="true">
      <forms>
       <form>
            <field-visibility>
               <show id="pogodbe:drugOddelek" />
               <show id="pogodbe:naslov" />
               <show id="pogodbe:komentiraj" />     
               <show id="pogodbe:template" />
               <show id="pogodbe:stProjekta" />
               <show id="pogodbe:dobavitelj" />
               <show id="pogodbe:dobavitelj1" />
               <show id="pogodbe:dobavitelj2" />
               <show id="pogodbe:dobavitelj3" />
               <show id="pogodbe:dobavitelj4" />
               <show id="packageItems" />
               <show id="bpm:priority" />
               <show id="bpm:dueDate" />
               <show id="bpm:comment" />
               <show id="pogodbe:komentiraj" />
               <show id="transitions" />
            </field-visibility>
            <appearance>

            <set id="four" appearance="title" label-id="Izpolni se samo v primeru pogodbe iz predloge" />                                
            <set id="three" />                
            <set id="two" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />                 
            <set id="one" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
            <set id="files" appearance="title" label-id="Dokumenti delovnega toka" />                          
            <set id="comment" appearance="title" label-id="Vaš komentar" />        
            <set id="comment2" appearance="" label-id="" />        
            <set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />                 
                <set id="response" appearance="title" label-id="" /> 

                <field id="pogodbe:naslov" label-id="Naslov pogodbe" />
                <field id="pogodbe:stProjekta" set="four" label-id="Številka projekta" />    
                <field id="pogodbe:template" set="four" label-id="Predloga za pogodbo" />
                <field id="pogodbe:dobavitelj" set="three" label-id="Pogodbeni partner" >
                   <control template="/org/alfresco/components/form/controls/selectone.ftl" />
                </field>
                <field id="pogodbe:dobavitelj1" set="two" label-id="Prvi opcijski pogodbeni partner" >
                   <control template="/org/alfresco/components/form/controls/selectone.ftl" />
                </field>
                <field id="pogodbe:dobavitelj2" set="two" label-id="Drugi opcijski pogodbeni partner" >
                   <control template="/org/alfresco/components/form/controls/selectone.ftl" />
                </field>
                <field id="pogodbe:dobavitelj3" set="one" label-id="Tretji opcijski pogodbeni partner" >
                   <control template="/org/alfresco/components/form/controls/selectone.ftl" />
                </field>
                <field id="pogodbe:dobavitelj4" set="one" label-id="Četrti opcijski pogodbeni partner" >
                   <control template="/org/alfresco/components/form/controls/selectone.ftl" />
                </field>
                <field id="bpm:priority" set="info" label-id="Prioriteta naloge">
                    <control template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
                </field>
                <field id="bpm:dueDate"  set="info" label-id="Rok za končanje naloge" />
                <field id="bpm:comment" label-id="Opombe"  set="comment">
                    <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                </field>
                <field id="pogodbe:komentiraj" set="comment2" label-id="Ali se komentar posreduje naslednjemu v delovnem toku ?" >
                    <control template="/org/alfresco/components/form/controls/true_checkbox.ftl" />
                </field>
                <field id="transitions" set="response"/>       
                <field id="packageItems" set="files"/>                  
          </appearance>
         </form>
      </forms>
    </config>
       

    <config evaluator="task-type" condition="pogodbe:potrdi2" replace="true">
      <forms>
        <form>
           <field-visibility>
               <show id="pogodbe:prejsnjiKomentar" />
               <show id="pogodbe:naslov" />
               <show id="pogodbe:zaporedna" />
               <show id="pogodbe:partnerji" />
               <show id="packageItems" />
               <show id="bpm:priority" />
               <show id="bpm:dueDate" />
               <show id="bpm:comment" />
               <show id="pogodbe:komentiraj" />
               <show id="transitions" />
            </field-visibility>
            <appearance>

               <set id="comment" appearance="title" label-id="Vaš komentar" />        
               <set id="comment2" appearance="" label-id="" />        
               <set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />                                   
               <set id="response" appearance="title" label-id="" />

               <field id="pogodbe:prejsnjiKomentar" label-id="" >
                  <control template="/org/alfresco/components/form/controls/agila_comment.ftl" />
               </field>
               <field id="pogodbe:naslov" label-id="Naslov pogodbe" >
                  <control template="/org/alfresco/components/form/controls/agila_table_begin2.ftl" >
                      <control-param name="row">odd</control-param>
                  </control>                         
               </field>
               <field id="pogodbe:zaporedna" label-id="Zaporedna številka pogodbe v tem letu" >
                  <control template="/org/alfresco/components/form/controls/agila_table2.ftl">
                     <control-param name="row">even</control-param>
                  </control>
               </field>
               <field id="pogodbe:partnerji" label-id="Pogodbeni partner" >
                  <control template="/org/alfresco/components/form/controls/agila_table_end2.ftl" >
                     <control-param name="row">odd</control-param>
                  </control>
               </field>
             <field id="bpm:priority" set="info" label-id="Prioriteta naloge">
                  <control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
               </field>
               <field id="bpm:dueDate"  set="info" label-id="Rok za končanje naloge" />
               <field id="bpm:comment" label-id="Opombe"  set="comment">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl" />
               </field>
               <field id="pogodbe:komentiraj" set="comment2" label-id="Ali se komentar posreduje naslednjemu v delovnem toku ?" />
               <field id="transitions"  set="response"/>                          
            </appearance>
          </form>
        </forms>
     </config>  
   
   
     <config evaluator="task-type" condition="pogodbe:potrdi3" replace="true">
      <forms>
         <form>
            <field-visibility>
               <show id="pogodbe:prejsnjiKomentar" />
               <show id="pogodbe:naslov" />
               <show id="pogodbe:predlagatelj" />
               <show id="pogodbe:zaporedna" />
               <show id="pogodbe:partnerji" />
               <show id="packageItems" />
               <show id="bpm:priority" />
               <show id="bpm:dueDate" />
               <show id="bpm:comment" />
               <show id="transitions" />
            </field-visibility>
            <appearance>

               <set id="comment" appearance="title" label-id="Vas komentar" />
               <set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />                          
               <set id="response" appearance="title" label-id="Izberite eno izmed možnosti" />

               <field id="pogodbe:prejsnjiKomentar" label-id="" >
                  <control template="/org/alfresco/components/form/controls/agila_comment.ftl" />
               </field>                                          
              <field id="pogodbe:naslov" label-id="Naslov pogodbe" >
                  <control template="/org/alfresco/components/form/controls/agila_table_begin2.ftl">
                     <control-param name="row">odd</control-param>
                  </control>                         
               </field>
               <field id="pogodbe:predlagatelj" label-id="Predlagatelj" >
                  <control template="/org/alfresco/components/form/controls/agila_table2.ftl">
               <control-param name="row">even</control-param>
                  </control>
               </field>
               <field id="pogodbe:zaporedna" label-id="Zaporedna številka pogodbe v tem letu" >
                  <control template="/org/alfresco/components/form/controls/agila_table2.ftl" >
                    <control-param name="row">odd</control-param>
                  </control>
               </field>
               <field id="pogodbe:partnerji" label-id="Pogodbeni partner" >
                  <control template="/org/alfresco/components/form/controls/agila_table_end2.ftl" >
                    <control-param name="row">even</control-param>
                  </control>
               </field>
               <field id="bpm:priority" set="info" label-id="Prioriteta naloge">
                  <control template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
               </field>
               <field id="bpm:dueDate"  set="info" label-id="Rok za končanje naloge" />
               <field id="bpm:comment" label-id="Opombe"  set="comment">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl" />
               </field>
               <field id="pogodbe:komentiraj" set="comment2" label-id="Ali se komentar posreduje naslednjemu v delovnem toku ?" />
               <field id="transitions" set="response" />                  
            </appearance>
         </form>
     </forms>
   </config>

What is the problem wih this definition, that worked on old version.
Have there been any changes in defining the forms in version 4 of Alfresco.
On my Alfresco I use only the jbpm engine, I have activiti turned off.
1 REPLY 1

leftright
Champ on-the-rise
Champ on-the-rise
I have figured out what the problem was.
I just had to use different names for the two tasks and then it started working.

As to why the forms didn't work with old names, I have absolutely no idea. Smiley Very Happy