<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="wf:validation">
<swimlane name="initiator"></swimlane>
<swimlane name="RO">
<assignment actor-id="RO"/>
</swimlane>
<swimlane name="RS">
<assignment actor-id="RS"/>
</swimlane>
<swimlane name="DG">
<assignment actor-id="DG"/>
</swimlane>
<start-state name="Debut">
<task name="wf:Submit" swimlane="initiator"/>
<transition to="Commercial">
</transition>
</start-state>
<task-node name="RS">
<task name="wf:RS_Tache" swimlane="RS"/>
<transition to="RO" name="Reviser">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
{
var mail= actions.create("mail");
mail.parameters.to=RO.properties.["cm:email"];
mail.parameters.from=RS.properties.["cm:email"];
mail.parameters.subject="Validation Doc: pour action";
mail.parameters.text= "Veuillez corriger le document" ;
}
</script>
<script>
{
var mail= actions.create("mail");
mail.parameters.to=initiator.properties.["cm:email"];
mail.parameters.from=RS.properties.["cm:email"];
mail.parameters.subject="Validation Doc : pour info";
mail.parameters.text= "Le document doit tre rviser" ;
}
</script>
</action>
</transition>
<transition to="DG" name="valider RS">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
{
var mail= actions.create("mail");
mail.parameters.to=RS.properties.["cm:email"];
mail.parameters.from=DG.properties.["cm:email"];
mail.parameters.subject="Validation Doc :pour action";
mail.parameters.text= "Veuiller examiner le document" ;
}
</script>
</action>
</transition>
</task-node>
<task-node name="RO">
<task name="wf:RO_Tache" swimlane="RO"/>
<transition to="Commercial" name="envoie version corrige">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
{
var mail= actions.create("mail");
mail.parameters.to=initiator.properties.["cm:email"];
mail.parameters.from=RO.properties.["cm:email"];
mail.parameters.subject="Validation Doc : Pour action";
mail.parameters.text= "Le document est corrig" ;
}
</script>
</action>
</transition>
</task-node>
<task-node name="DG">
<task name="wf:DG_Tache" swimlane="DG"/>
<transition to="RO" name="reviser DG">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
{
var mail= actions.create("mail");
mail.parameters.to=RO.properties.["cm:email"];
mail.parameters.from=DG.properties.["cm:email"];
mail.parameters.subject="Validation Doc : Pour action";
mail.parameters.text= "Le document doit tre rviser" ;
}
</script>
</action>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">>
<script>
{
var mail= actions.create("mail");
mail.parameters.to=RS.properties.["cm:email"];
mail.parameters.from=DG.properties.["cm:email"];
mail.parameters.subject="Validation Doc : Pour info";
mail.parameters.text= "Le document doit tre rviser" ;
}
</script>
</action>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
{
var mail= actions.create("mail");
mail.parameters.to=initiator.properties.["cm:email"];
mail.parameters.from=DG.properties.["cm:email"];
mail.parameters.subject="Validation Doc : Pour info";
mail.parameters.text= "Le document doit tre rviser";
}
</script>
</action>
</transition>
<transition to="Commercial" name="Valider DG"></transition>
</task-node>
<task-node name="Commercial" >
<task name="wf:Commercial_Tache" swimlane="initiator" />
<transition to="RS" name="envoie doc">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var test = bpm_package;
var doc = test.children[0];
doc.addAspect("cm:versionable");
doc.save();
</script>
</action>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
{
var mail= actions.create("mail");
mail.parameters.to=RS.properties.["cm:email"];
mail.parameters.from=initiator.properties.["cm:email"];
mail.parameters.subject="Validation Doc : Pour action";
mail.parameters.text= "Veuiller valider le document" ;
}
</script>
</action>
</transition>
<transition to="end-state1" name="Imprimer">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
{
var mail= actions.create("mail");
mail.parameters.to=RS.properties.["cm:email"];
mail.parameters.to=RO.properties.["cm:email"];
mail.parameters.to=DG.properties.["cm:email"];
mail.parameters.from=initiator.properties.["cm:email"];
mail.parameters.subject="Validation Doc : Pour action";
mail.parameters.text= "le document est prs pour impression" ;
}
</script>
</action>
</transition>
</task-node>
<end-state name="end-state1"></end-state>
</process-definition>
<?xml version="1.0" encoding="utf-8" ?>
<model name="wf:workflowmodel"
xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Validation Workflow</description>
<author>Jack</author>
<version>1.0</version>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm" />
</imports>
<namespaces>
<namespace uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"/>
</namespaces>
<types>
<type name="wf:Submit">
<parent>bpm:startTask</parent>
<properties>
<property name="bpm:description">
<type>d:text</type>
</property>
</properties>
</type>
<type name="wf:Commercial_Tache">
<parent>bpm:workflowTask</parent>
<overrides>
</overrides>
</type>
<type name="wf:RO_Tache">
<parent>bpm:workflowTask</parent>
</type>
<type name="wf:RS_Tache">
<parent>bpm:workflowTask</parent>
</type>
<type name="wf:DG_Tache">
<parent>bpm:workflowTask</parent></type>
</types>
</model>
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.