11-04-2009 10:38 AM
11-04-2009 11:23 AM
11-04-2009 12:16 PM
11-05-2009 03:05 AM
11-05-2009 04:56 AM
<?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>
11-05-2009 05:14 AM
11-05-2009 05:29 AM
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.