share config-custom-xml.xml non pris en consideration

cancel
Showing results for 
Search instead for 
Did you mean: 
kawther
Member II

share config-custom-xml.xml non pris en consideration

Jump to solution

bonjour,

je travaille sous alfresco 5.0.d et je développe mon workflow avec activiti designer sous eclipse

dans mon workflow j'ai 4 taches (usertask) et donc 4 types définies dans mon modele

ces 4 types sont tous des sous types d'un même type que j'ai déclare dans mon modèle.

j'ai fait ma configuration d'affichage coté share-config-custom.xml pour mes tâches. les formulaires de deux premières tâches sont affichés tel que indiqué dans le <config..>

les deux autres formulaires sont affichés en totalité cad le <config...> n'est pas pris en compte

que dois je faire

help me

1 Solution

Accepted Solutions
cristinamr
Advanced

Re: share config-custom-xml.xml non pris en consideration

Jump to solution

Je pense qu'il ya une erreur ici:

<config evaluator="task-type" condition="revisionIITask">

et ici:

 <config evaluator="task-type" condition="revisionETask">

Il doit être:

<config evaluator="task-type" condition="cgwf:revisionIITask">
 <config evaluator="task-type" condition="cgwf:revisionETask">

Essayer les solutions suivantes: Pourquoi ne pas vous juste un bloc et l'essayer si vous le voyez dans Share UI?

Et aussi: Revisez l' alfresco.log/catalina.out pour savoir l'erreur.

--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc

View solution in original post

6 Replies
ycoulon
Alfresco Employee

Re: share config-custom-xml.xml non pris en consideration

Jump to solution

Bonjour,

Si l'ensemble de vos formulaires sont défini dans le même fichiers de configuration et qu'une partie sont bien pris en compte le problème n'est pas au niveau de la prise en compte de ce fichier de configuration mais plutôt dans la déclaration des formulaire eux-mêmes.

Yann

cristinamr
Advanced

Re: share config-custom-xml.xml non pris en consideration

Jump to solution

Bonjour Kawther,

Normalement, si vous déclarez les formes share-config-custom.xml devrait charger correctement mais c'est très sensible... Pouvez-vous mettre le contenu du fichier ici?

Cristina.

--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc
kawther
Member II

Re: share config-custom-xml.xml non pris en consideration

Jump to solution

merci pour votre interet

voici la partie du share-config-custom.xml relatif au problematique:

<alfresco-config>

     <config evaluator="string-compare" condition="activiti$conge3">
      <forms>
          ....
      </forms>
    </config>

 
  

  <config evaluator="task-type" condition="cgwf:chefTask">
    <forms >
        <form >
            <field-visibility>
               <show id="cgwf:matriculef" />  
         <show id="cgwf:nomprenomf" />  
           <show id="cgwf:gradef" />  
             <show id="cgwf:typecongef" />  
               <show id="cgwf:dureef" />  
           <show id="cgwf:datedebutf" />  
                 
        <show id="cgwf:remarquechef" />
        <show id="cgwf:remplacant" />
        <show id="cgwf:decisionchef" />  
        <show id="transitions" />
        </field-visibility>
            <appearance>
         <set id="response" appearance="title" label-id="workflow.set.response" />
              <field id="cgwf:matriculef" read-only="true" set="response" />  
                <field id="cgwf:nomprenomf" read-only="true" set="response" />
                  <field id="cgwf:gradef" read-only="true" set="response" />
                    <field id="cgwf:typecongef" read-only="true" set="response" />
                      <field id="cgwf:dureef" read-only="true" set="response" />
                        <field id="cgwf:datedebutf" read-only="true" set="response" />
                        
                  <field id="cgwf:remarquechef"  set="response" />       
                   <field id="cgwf:remplacant"  set="response" />       
                   <field id="cgwf:decisionchef"  set="response" />   
                  <field id="transitions" set="response" />                 
            </appearance>
        </form>
    </forms>
</config>

<config evaluator="task-type" condition="cgwf:dafTask">
    <forms >
        <form>
            <field-visibility>
        <show id="cgwf:matriculef" />  
         <show id="cgwf:nomprenomf" />  
           <show id="cgwf:gradef" />  
             <show id="cgwf:typecongef" />  
               <show id="cgwf:dureef" />  
           <show id="cgwf:datedebutf" />  
                 
        <show id="cgwf:remarquechef" />
        <show id="cgwf:remplacant" />
        <show id="cgwf:decisionchef" />
                         <show id="cgwf:remarquedaf" />
                 <show id="cgwf:decisiondaf" />  
                <show id="transitions" />
            </field-visibility>
            <appearance>
           <set id="response" appearance="title" label-id="workflow.set.response" />
              <field id="cgwf:matriculef" read-only="true" set="response" />  
                <field id="cgwf:nomprenomf" read-only="true" set="response" />
                  <field id="cgwf:gradef" read-only="true" set="response" />
                    <field id="cgwf:typecongef" read-only="true" set="response" />
                      <field id="cgwf:dureef" read-only="true" set="response" />
                        <field id="cgwf:datedebutf" read-only="true" set="response" />
                        
                  <field id="cgwf:remarquechef" read-only="true"  set="response" />       
                   <field id="cgwf:remplacant" read-only="true"  set="response" />       
                   <field id="cgwf:decisionchef" read-only="true"  set="response" />
                   
                    <field id="cgwf:remarquedaf"  set="response" />       
                   <field id="cgwf:decisiondaf"  set="response" />
                     
                  <field id="transitions" set="response" />               
                
                </appearance>
        </form>
    </forms>
</config>

 <config evaluator="task-type" condition="revisionETask">
    <forms >
        <form>
            <field-visibility>
       
        <show id="cgwf:matriculef" />  
         <show id="cgwf:nomprenomf" />  
           <show id="cgwf:gradef" />  
             <show id="cgwf:typecongef" />  
               <show id="cgwf:dureef" />  
           <show id="cgwf:datedebutf" />  
        <show id="cgwf:remarquechef" />
        <show id="cgwf:remplacant" />
        <show id="cgwf:decisionchef" />  
           <show id="cgwf:renvoyerounon" />
         <show id="transitions" />
        </field-visibility>
            <appearance>
         <set id="response" appearance="title" label-id="workflow.set.response" />
              <field id="cgwf:matriculef" read-only="true" set="response" />  
                <field id="cgwf:nomprenomf" read-only="true" set="response" />
                  <field id="cgwf:gradef" read-only="true" set="response" />
                                           
                  <field id="cgwf:remarquechef" read-only="true" set="response" />       
                   <field id="cgwf:remplacant" read-only="true" set="response" />       
                   <field id="cgwf:decisionchef" read-only="true" set="response" />  
                   
                    <field id="cgwf:typecongef" set="response" />
                     <field id="cgwf:dureef"  set="response" />
                     <field id="cgwf:datedebutf" set="response" />
                     <field id="renvoyerounon" set="response" />  
                   <field id="transitions" set="response" />                 
            </appearance>
        </form>
    </forms>
</config>


<config evaluator="task-type" condition="revisionIITask">
    <forms  >
        <form>
            <field-visibility>
            <show id="cgwf:matriculef" />  
         <show id="cgwf:nomprenomf" />  
           <show id="cgwf:gradef" />  
             <show id="cgwf:typecongef" />  
               <show id="cgwf:dureef" />  
           <show id="cgwf:datedebutf" />  
                 
        <show id="cgwf:remarquechef" />
        <show id="cgwf:remplacant" />
        <show id="cgwf:decisionchef" />  
        
         <show id="cgwf:renvoyerounon" />
          <show id="transitions" />
        </field-visibility>
            <appearance>
         <set id="response" appearance="title" label-id="workflow.set.response" />
              <field id="cgwf:matriculef" read-only="true" set="response" />  
                <field id="cgwf:nomprenomf" read-only="true" set="response" />
                  <field id="cgwf:gradef" read-only="true" set="response" />
                                           
                  <field id="cgwf:remarquechef" read-only="true" set="response" />       
                   <field id="cgwf:remplacant" read-only="true" set="response" />       
                   <field id="cgwf:decisionchef" read-only="true" set="response" />  
                   
                     <field id="cgwf:remarquedaf" read-only="true" set="response" />       
                   <field id="cgwf:decisiondaf" read-only="true" set="response" />  
                   
                    <field id="cgwf:typecongef" set="response" />
                     <field id="cgwf:dureef"  set="response" />
                     <field id="cgwf:datedebutf" set="response" />
                     <field id="renvoyerounon" set="response" />  
                       <field id="transitions" set="response" />                 
            </appearance>
        </form>
    </forms>
</config>


</alfresco-config>

donc voici les 4 config correspondent aux formulaires affichés; ce sont les deux derniers qui ne sont pas respectés (revisionETask et revisionIITask)

En fait, peut être qu'il faut savoir que j'ai déclaré 4 types (1 par formulaire) qui héritent tous d'un même type  (pour pouvoir passer les valeurs de propriétés d'un formulaire à un autre)

cristinamr
Advanced

Re: share config-custom-xml.xml non pris en consideration

Jump to solution

Je pense qu'il ya une erreur ici:

<config evaluator="task-type" condition="revisionIITask">

et ici:

 <config evaluator="task-type" condition="revisionETask">

Il doit être:

<config evaluator="task-type" condition="cgwf:revisionIITask">
 <config evaluator="task-type" condition="cgwf:revisionETask">

Essayer les solutions suivantes: Pourquoi ne pas vous juste un bloc et l'essayer si vous le voyez dans Share UI?

Et aussi: Revisez l' alfresco.log/catalina.out pour savoir l'erreur.

--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc
kawther
Member II

Re: share config-custom-xml.xml non pris en consideration

Jump to solution

résolu

merci beaucoup Cristina MR

cristinamr
Advanced

Re: share config-custom-xml.xml non pris en consideration

Jump to solution

De rien :-)

--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc