cancel
Showing results for 
Search instead for 
Did you mean: 

Bonjour je suis entrain de tester la fonction motifyme...

didier_6401
Champ in-the-making
Champ in-the-making
Bonjour

je suis entrain de tester  la fonction motifyme mais c marche pas

mon code  le voila:

<swimlane name="initiator"/>

   <start-state name="debut">
      <task name="wf:debut" swimlane="initiator"/>
      <transition name="" to="chef"/>
   </start-state>

   <swimlane name="assignee">
      <assignment actor-id="#{bpm_assignee.properties['cm:userName']}"/>
   </swimlane>
  
   <task-node name="chef">
      <task name="wf:chef" swimlane="assignee"></task>
      <transition name="" to=" direction ">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
           <script>
              if (wf_notifyMe)
              {
                 var mail = actions.create("mail");
                 mail.parameters.to = initiator.properties["cm:email"];
                 mail.parameters.subject = "Adhoc Task " + bpm_workflowDescription;
                 mail.parameters.from = bpm_assignee.properties["cm:email"];
                 mail.parameters.text = "It's done";
                 mail.execute(bpm_package);
              }
           </script>
         </action>

</transition>
   </task-node>
  
   <task-node name="direction">
      <task name="wf:direction" swimlane="initiator"/>
      <transition name="" to="end"/>
   </task-node>
     
   <end-state name="end"/>
  
</process-definition>

code workflowmodel :

<type name="wf:debut">
         <parent>bpm:startTask</parent>
         <properties>
            <property name="wf:notifyMe">
               <type>d:boolean</type>
               <default>false</default>
            </property>
         </properties>
         <mandatory-aspects>
            <aspect>bpm:assignee</aspect>
         </mandatory-aspects>
      </type>

      <type name="wf:chef">
         <parent>bpm:workflowTask</parent>   
      </type>

      <type name="wf:direction">
         <parent>bpm:workflowTask</parent>
      </type>

code web-client-config-properties.xml :
<config evaluator="node-type" condition="wf:debut" replace="true">
      <property-sheet>
         <separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
         <show-property name="bpm:workflowDescription" component-generator="TextAreaGenerator" />
         <!–<show-property name="wf:notifyMe" />–>
         <separator name="sep2" display-label-id="user_filter_user" component-generator="HeaderSeparatorGenerator" />
         <show-association name="bpm:assignee" display-label-id="wf_adhoc_assignee" />
      </property-sheet>
   </config>
  
   <config evaluator="node-type" condition="wf:chef" replace="true">
      <property-sheet>
      </property-sheet>
   </config>
  
   <config evaluator="node-type" condition="wf:direction" replace="true">
      <property-sheet>
      </property-sheet>
   </config>

Merci par avance
2 REPLIES 2

guiyan17
Champ in-the-making
Champ in-the-making
bonjour,

Quelle type d'erreur s'affiche? le serveur démarre normallement? la case à cocher notifyMe s'affiche bien sur la page web?

michaelh
Champ on-the-rise
Champ on-the-rise
Bonjour,

Je vais paraitre désagréable (une fois de plus Smiley Wink ) mais entre nous "ça marche pas" est la phrase qui parmi toutes donne le moins envie de répondre.
Je vous renvoie à http://forum.alfresco-fr.org/viewtopic.php?id=86
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.