Bouton de form de workflow ne s'affiche pas

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

Bouton de form de workflow ne s'affiche pas

Bonjour,
Lors de l'ajout d'un custom workflow à la liste des workflows qui s'affichent par défaut,le bouton de personne assignée disparait pourtant j'ai pas changer dans le code de leur forms.
J'ai mis le code des forms des  workflows customisé dans les 2 fichiers share-config-custom et share-workflow-form-config.
Les fichiers models de ces workflows sont sous alfresco\extension\model  et les properties sous alfresco\extension\messages.
Pour le fichier de context sous extension :
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="dao.workflowBootstrap" parent="workflowDeployer">
      <property name="workflowDefinitions">
         <list>
            <!– Activiti –>
            <props>
               <prop key="engineId">activiti</prop>
               <prop key="location">alfresco/extension/workflows/activiti/demDocDAO.bpmn20.xml</prop>
               <prop key="mimetype">text/xml</prop>
               <prop key="redeploy">false</prop>
            </props>
            <props>
               <prop key="engineId">activiti</prop>
               <prop key="location">alfresco/extension/workflows/activiti/demCCT.bpmn20.xml</prop>
               <prop key="mimetype">text/xml</prop>
               <prop key="redeploy">false</prop>
            </props>
         </list>
      </property>
      <property name="models">
         <list>
                <value>alfresco/extension/model/demDocDAOModel.xml</value>
             <value>alfresco/extension/model/demCCTModel.xml</value>
         </list>
      </property>
      <property name="labels">
         <list>
                <value>alfresco/extension/messages/demDocDAO-messages_fr</value>
             <value>alfresco/extension/messages/demCCT-messages_fr</value>
         </list>
      </property>
   </bean>
</beans>
J'ai remarqué quand je supprime le fichier context,les boutons s’affichent dans les workflows par défauts comme :activitiAdhoc et les autres mais le bouton disparaît dans mes workflows spécifiques.
J'ai tous essayé mais j'ai tjr le même problème.
Je veux garder les workflows par défauts comme ils sont et ajouter mes workflows avec bouton d'ajout d'un groupe ou autre.
Y a il une personne qui sais pourquoi et peut m'aider la dessus
alfresco share 4.0.c+activiti
Merci d'avance
6 Replies
cleseach
Active Member II

Re: Bouton de form de workflow ne s'affiche pas

Bonjour,

Vos fichiers share-config-custom et share-workflow-form-config pourraient nous être utiles pour comprendre le problème.

Cordialement,
Charles Le Seac'h
dorra87
Member II

Re: Bouton de form de workflow ne s'affiche pas

Bonjour,
le fichier share-config-custom.xml

<alfresco-config>

<!– Repository Library config section –>
<config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
  <!–
    Whether the link to the Repository Library appears in the header component or not.
  –>
  <visible>true</visible>
 
</config>
   
   <!–workflow demande des cahiers des clauses techniques–>
   <config evaluator="string-compare" condition="activiti$activitiDemCCT">
      <forms>
         <form>
            <field-visibility>
               <show id="bpm:workflowDescription"/>
               <show id="bpm:workflowDueDate"/>
               <show id="bpm:workflowPriority"/>
               <show id="wf:projectName"/>
               <show id="wf:marketName"/>
               <show id="bpm:groupAssignee"/>
               <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="assignee" appearance="title" label-id="workflow.set.assignee"/>
               <set id="other" appearance="title" label-id="workflow.set.other"/>
               <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="wf:projectName" set="info">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl"/>
               </field>
               <field id="wf:marketName" set="info">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl"/>
               </field>
               <field id="bpm:groupAssignee" label-id="workflow.field.review_group" set="assignee"/>
               <field id="bpm:sendEMailNotifications" set="other">
                  <control template="/org/alfresco/components/form/controls/workflow/email-notification.ftl"/>
               </field>
            </appearance>
         </form>
      </forms>
   </config>
   <config evaluator="task-type" condition="wf:submitGroupReviewTaskCCT">
      <forms>
         <form id="workflow-details">
            <field-visibility>
               <show id="bpm:groupAssignee"/>
               <show id="bpm:sendEMailNotifications"/>
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.workflow.more_info"/>
               <set id="items" appearance="title" label-id="workflow.set.items"/>
               <field id="bpm:groupAssignee" label-id="workflow.field.review_group"/>
            </appearance>
         </form>
         <form>
            <field-visibility>
               <show id="message"/>
               <show id="taskOwner"/>
               <show id="bpm:workflowPriority"/>
               <show id="bpm:workflowDueDate"/>
               <show id="bpm:taskId"/>
               <show id="bpm:status"/>
               <show id="wf:projectName"/>
               <show id="wf:marketName"/> 
               <show id="bpm:sendEMailNotifications"/>
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.task.info"/>
               <set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl"/>
               <set id="progress" appearance="title" label-id="workflow.set.task.progress"/>
               <set id="other" appearance="title" label-id="workflow.set.other"/>
               <field id="message">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="taskOwner" set="info"/>
               <field id="bpm:taskId" set="info">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="bpm:workflowPriority" label-id="workflow.field.priority" set="info" read-only="true">
                  <control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
               </field>
               <field id="bpm:workflowDueDate" set="info" label-id="workflow.field.due">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="bpm:status" set="progress"/>
               <field id="wf:projectName" set="info">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="wf:marketName" set="info">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="bpm:sendEMailNotifications" set="other"/>
            </appearance>
         </form>
      </forms>
   </config>
      <config evaluator="task-type" condition="wf:activitiReviewTaskCCT">
      <forms>
         <form>
            <field-visibility>
               <show id="message"/>
               <show id="taskOwner"/>
               <show id="bpm:priority"/>
               <show id="bpm:dueDate"/>
               <show id="bpm:taskId"/>
               <show id="bpm:status"/>
               <show id="wf:projectName"/>
               <show id="wf:marketName"/> 
               <show id="bpm:comment"/>
               <show id="wf:reviewOutcome"/>
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.task.info"/>
               <set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl"/>
               <set id="progress" appearance="title" label-id="workflow.set.task.progress"/>
               <set id="response" appearance="title" label-id="workflow.set.response"/>
               <field id="message">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="taskOwner" set="info"/>
               <field id="bpm:taskId" set="info">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="bpm:priority" set="info" read-only="true">
                  <control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
               </field>
               <field id="bpm:dueDate" set="info" label-id="workflow.field.due">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="wf:projectName" set="info">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="wf:marketName" set="info">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="bpm:status" set="progress"/>
               <field id="bpm:comment" label-id="workflow.field.comment" set="response">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl"/>
               </field>
               <field id="wf:reviewOutcome" label-id="workflow.field.outcome" set="response">
                  <control template="/org/alfresco/components/form/controls/workflow/activiti-transitions.ftl"/>
               </field>
            </appearance>
         </form>
      </forms>
   </config>
   <config evaluator="task-type" condition="wf:approvedParallelTaskCCT">
      <forms>
         <form>
            <field-visibility>
               <show id="message"/>
               <show id="taskOwner"/>
               <show id="bpm:priority"/>
               <show id="bpm:dueDate"/>
               <show id="bpm:taskId"/>
               <show id="bpm:status"/>
               <show id="bpm:comment"/>
               <show id="transitions"/>
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.task.info"/>
               <set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl"/>
               <set id="progress" appearance="title" label-id="workflow.set.task.progress"/>
               <set id="response" appearance="title" label-id="workflow.set.response"/>
               <field id="message">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="taskOwner" set="info"/>
               <field id="bpm:taskId" set="info">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="bpm:priority" set="info" read-only="true">
                  <control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
               </field>
               <field id="bpm:dueDate" set="info" label-id="workflow.field.due">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>   
               <field id="bpm:status" set="progress"/>
               <field id="bpm:comment" label-id="workflow.field.comment" set="response">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl"/>
               </field>
               <field id="transitions" set="response"/>
            </appearance>
         </form>
      </forms>
   </config>
   <config evaluator="task-type" condition="wf:rejectedParallelTaskCCT">
      <forms>
         <form>
            <field-visibility>
               <show id="message"/>
               <show id="taskOwner"/>
               <show id="bpm:priority"/>
               <show id="bpm:dueDate"/>
               <show id="bpm:taskId"/>
               <show id="bpm:status"/>
               <show id="bpm:comment"/>
               <show id="transitions"/>
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.task.info"/>
               <set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl"/>
               <set id="progress" appearance="title" label-id="workflow.set.task.progress"/>
               <set id="response" appearance="title" label-id="workflow.set.response"/>
               <field id="message">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="taskOwner" set="info"/>
               <field id="bpm:taskId" set="info">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="bpm:priority" set="info" read-only="true">
                  <control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
               </field>
               <field id="bpm:dueDate" set="info" label-id="workflow.field.due">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="bpm:status" set="progress"/>
               <field id="packageItems" set="items"/>
               <field id="bpm:comment" label-id="workflow.field.comment" set="response">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl"/>
               </field>
               <field id="transitions" set="response"/>
            </appearance>
         </form>
      </forms>
   </config>
   <!–workflow de demande de documents du DAO –>
   <config evaluator="string-compare" condition="activiti$activitiDemDocDAO">
      <forms>
         <form>
            <field-visibility>
               <show id="bpm:workflowDescription"/>
               <show id="bpm:workflowDueDate"/>
               <show id="bpm:workflowPriority"/>
               <show id="wf:projectName"/>
               <show id="wf:marketName"/>
               <show id="bpm:groupAssignee"/>
               <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="assignee" appearance="title" label-id="workflow.set.assignee"/>
               <set id="other" appearance="title" label-id="workflow.set.other"/>
               <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="wf:projectName" set="info">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl"/>
               </field>
               <field id="wf:marketName" set="info">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl"/>
               </field>
               <field id="bpm:groupAssignee" label-id="workflow.field.review_group" set="assignee"/>
               <field id="bpm:sendEMailNotifications" set="other">
                  <control template="/org/alfresco/components/form/controls/workflow/email-notification.ftl"/>
               </field>
            </appearance>
         </form>
      </forms>
   </config>
   <config evaluator="task-type" condition="wf:submitGroupReviewTaskDOC">
      <forms>
         <form id="workflow-details">
            <field-visibility>
               <show id="bpm:groupAssignee"/>
               <show id="bpm:sendEMailNotifications"/>
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.workflow.more_info"/>
               <set id="items" appearance="title" label-id="workflow.set.items"/>
               <field id="bpm:groupAssignee" label-id="workflow.field.review_group"/>
            </appearance>
         </form>
         <form>
            <field-visibility>
               <show id="message"/>
               <show id="taskOwner"/>
               <show id="bpm:workflowPriority"/>
               <show id="bpm:workflowDueDate"/>
               <show id="bpm:taskId"/>
               <show id="bpm:status"/>
               <show id="wf:projectName"/>
               <show id="wf:marketName"/> 
               <show id="bpm:sendEMailNotifications"/>
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.task.info"/>
               <set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl"/>
               <set id="progress" appearance="title" label-id="workflow.set.task.progress"/>
               <set id="other" appearance="title" label-id="workflow.set.other"/>
               <field id="message">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="taskOwner" set="info"/>
               <field id="bpm:taskId" set="info">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="bpm:workflowPriority" label-id="workflow.field.priority" set="info" read-only="true">
                  <control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
               </field>
               <field id="bpm:workflowDueDate" set="info" label-id="workflow.field.due">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="bpm:status" set="progress"/>
               <field id="wf:projectName" set="info">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="wf:marketName" set="info">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="bpm:sendEMailNotifications" set="other"/>
            </appearance>
         </form>
      </forms>
   </config>
      <config evaluator="task-type" condition="wf:activitiReviewTaskDOC">
      <forms>
         <form>
            <field-visibility>
               <show id="message"/>
               <show id="taskOwner"/>
               <show id="bpm:priority"/>
               <show id="bpm:dueDate"/>
               <show id="bpm:taskId"/>
               <show id="bpm:status"/>
               <show id="wf:projectName"/>
               <show id="wf:marketName"/> 
               <show id="bpm:comment"/>
               <show id="wf:reviewOutcome"/>
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.task.info"/>
               <set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl"/>
               <set id="progress" appearance="title" label-id="workflow.set.task.progress"/>
               <set id="response" appearance="title" label-id="workflow.set.response"/>
               <field id="message">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="taskOwner" set="info"/>
               <field id="bpm:taskId" set="info">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="bpm:priority" set="info" read-only="true">
                  <control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
               </field>
               <field id="bpm:dueDate" set="info" label-id="workflow.field.due">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="wf:projectName" set="info">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="wf:marketName" set="info">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="bpm:status" set="progress"/>
               <field id="bpm:comment" label-id="workflow.field.comment" set="response">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl"/>
               </field>
               <field id="wf:reviewOutcome" label-id="workflow.field.outcome" set="response">
                  <control template="/org/alfresco/components/form/controls/workflow/activiti-transitions.ftl"/>
               </field>
            </appearance>
         </form>
      </forms>
   </config>
   <config evaluator="task-type" condition="wf:approvedParallelTaskDOC">
      <forms>
         <form>
            <field-visibility>
               <show id="message"/>
               <show id="taskOwner"/>
               <show id="bpm:priority"/>
               <show id="bpm:dueDate"/>
               <show id="bpm:taskId"/>
               <show id="bpm:status"/>
               <show id="bpm:comment"/>
               <show id="transitions"/>
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.task.info"/>
               <set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl"/>
               <set id="progress" appearance="title" label-id="workflow.set.task.progress"/>
               <set id="response" appearance="title" label-id="workflow.set.response"/>
               <field id="message">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="taskOwner" set="info"/>
               <field id="bpm:taskId" set="info">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="bpm:priority" set="info" read-only="true">
                  <control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
               </field>
               <field id="bpm:dueDate" set="info" label-id="workflow.field.due">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>   
               <field id="bpm:status" set="progress"/>
               <field id="bpm:comment" label-id="workflow.field.comment" set="response">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl"/>
               </field>
               <field id="transitions" set="response"/>
            </appearance>
         </form>
      </forms>
   </config>
   <config evaluator="task-type" condition="wf:rejectedParallelTaskDOC">
      <forms>
         <form>
            <field-visibility>
               <show id="message"/>
               <show id="taskOwner"/>
               <show id="bpm:priority"/>
               <show id="bpm:dueDate"/>
               <show id="bpm:taskId"/>
               <show id="bpm:status"/>
               <show id="bpm:comment"/>
               <show id="transitions"/>
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.task.info"/>
               <set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl"/>
               <set id="progress" appearance="title" label-id="workflow.set.task.progress"/>
               <set id="response" appearance="title" label-id="workflow.set.response"/>
               <field id="message">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="taskOwner" set="info"/>
               <field id="bpm:taskId" set="info">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="bpm:priority" set="info" read-only="true">
                  <control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
               </field>
               <field id="bpm:dueDate" set="info" label-id="workflow.field.due">
                  <control template="/org/alfresco/components/form/controls/info.ftl"/>
               </field>
               <field id="bpm:status" set="progress"/>
               <field id="packageItems" set="items"/>
               <field id="bpm:comment" label-id="workflow.field.comment" set="response">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl"/>
               </field>
               <field id="transitions" set="response"/>
            </appearance>
         </form>
      </forms>
   </config>
<config evaluator="string-compare" condition="Remote">
  <remote>
    <endpoint>
      <id>alfresco-noauth</id>
      <name>Alfresco - unauthenticated access</name>
      <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
      <connector-id>alfresco</connector-id>
      <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
      <identity>none</identity>
    </endpoint>

    <endpoint>
      <id>alfresco</id>
      <name>Alfresco - user access</name>
      <description>Access to Alfresco Repository WebScripts that require user authentication</description>
      <connector-id>alfresco</connector-id>
      <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
      <identity>user</identity>
    </endpoint>
    <endpoint>
      <id>alfresco-feed</id>
      <name>Alfresco Feed</name>
      <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
      <connector-id>http</connector-id>
      <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
      <basic-auth>true</basic-auth>
      <identity>user</identity>
    </endpoint>
  </remote>
</config>
</alfresco-config>
Pour le fichier share-workflow-form-config.xml, je lui ai ajouté les même tâches et workflows se trouvant dans le fichier share-config-custom.xml.
Merci.
dorra87
Member II

Re: Bouton de form de workflow ne s'affiche pas

Quelqu'un peut m'aider la dessus?
Merci d'avance
dorra87
Member II

Re: Bouton de form de workflow ne s'affiche pas

Bon c'est résolu j'appelais avant le model d'alfresco  http://www.alfresco.org/model/workflow/1.0,j'ai changé et j'ai fais mon propre model et sans utiliser le wf et ça marche maintenant .
midoscofield
Member II

Re: Bouton de form de workflow ne s'affiche pas

Bonjour,
Est ce que tu peux me dire comment t'as réussi à créer ta propre model stp?

merci d'avance
jayjayecl
Active Member II

Re: Bouton de form de workflow ne s'affiche pas

Bravo !

Pour la suite, je vous conseille d'observer quelle configuration de formulaires (dans share-config-custom ou share-form-config-custom) est prise en compte, et de "nettoyer" l'autre fichier, pour avoir une instance configurée proprement !
Bonne continuation