<?xml version="1.0" encoding="UTF-8"?>
<model name="pac:qua-01" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Infos. –>
<description>Validation 1 Qualite</description>
<author>Fred</author>
<version>1.0</version>
<imports>
<!– Import dictionnaire de definitions –>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<!– Import modeles de definitions –>
<import uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"/>
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<namespaces>
<!– Import nouveau namespace defini par ce modele –>
<namespace uri="qua-01.pac" prefix="pac"/>
</namespaces>
<types>
<type name="pac:debutCircuit">
<parent>bpm:startTask</parent>
<properties>
<property name="wf:notifyMe">
<type>d:boolean</type>
<default>false</default>
</property>
</properties>
<mandatory-aspects>
<aspect>pac:persRedac</aspect>
<aspect>pac:persVerif</aspect>
<aspect>pac:persAprouv</aspect>
</mandatory-aspects>
</type>
<type name="pac:redaction">
<parent>bpm:workflowTask</parent>
<mandatory-aspects>
<aspect>pac:persRedac</aspect>
</mandatory-aspects>
</type>
<type name="pac:verification">
<parent>bpm:workflowTask</parent>
</type>
<type name="pac:docRefuse">
<parent>bpm:workflowTask</parent>
</type>
<type name="pac:versAppro">
<parent>bpm:workflowTask</parent>
</type>
</types>
<aspects>
<aspect name="pac:persRedac">
<associations>
<association name="pac:persRedac">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</associations>
</aspect>
<aspect name="pac:persVerif">
<associations>
<association name="pac:persVerif">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</associations>
</aspect>
<aspect name="pac:persAprouv">
<associations>
<association name="pac:persAprouv">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</associations>
</aspect>
</aspects>
</model>
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="pac:qua-01">
<swimlane name="initiator"></swimlane>
<swimlane name="redacteur">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<actor>#{pac_persRedac}</actor>
</assignment>
</swimlane>
<swimlane name="verificateur">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<actor>#{pac_persVerif}</actor>
</assignment>
</swimlane>
<swimlane name="approbateur">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<actor>#{pac_persAprouv}</actor>
</assignment>
</swimlane>
<start-state name="debut">
<task name="pac:debutCircuit" swimlane="initiator"/>
<transition name="deb" to="redac">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
</script>
</action>
</transition>
</start-state>
<task-node name="redac">
<task name="pac:redaction" swimlane="redacteur">
<event type="task-create">
<script>
System.out.println("VAR1 :"+pac_persRedac.properties.email);
</script>
</event>
</task>
<transition name="red" to="verif"></transition>
</task-node>
<task name="pac:verification" swimlane="verificateur"/>
<transition name="rejette" to="redac"></transition>
<transition name="accepte" to="aprob"></transition>
</task-node>
<task-node name="aprob">
<task name="pac:approbation" swimlane="approbateur"/>
<transition name="rejette" to="redac"></transition>
<transition name="accepte" to="fin"></transition>
</task-node>
<end-state name="fin"></end-state>
</process-definition>
rien ne marchePouvez-vous préciser ?
<start-state name="debut">
<task name="pac:debutCircuit" swimlane="initiator"/>
<event type="task-end">
<script>
<variable name="email_redac" access="write"/>
<expression>
email_redac = RECUP DE L'ADRESSE MAIL REDACTEUR;
</expression>
</script>
</event>
</start-state>
En espérant être plus précis …taskInstance.actorId.properties["cm:email"]
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="pac01:pac01">
<swimlane name="initiator"></swimlane>
<swimlane name="redacteur">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<actor>#{pac01_persRedac}</actor>
</assignment>
</swimlane>
<start-state name="debut">
<task name="pac01:debut" swimlane="initiator"/>
<transition name="debut" to="redaction">
</transition>
</start-state>
<task-node name="redaction">
<task name="pac01:redac" swimlane="redacteur">
<event type="task-assign">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var mail = actions.create("mail");
mail.parameters.to = pac01_persRedac.properties.email;
mail.parameters.subject = "SUJET DU MAIL";
mail.parameters.from = initiator.properties.email;
mail.parameters.text = "TEXTE";
mail.execute(bpm_package);
</script>
</action>
</event>
</task>
<transition name="finRedac" to="end">
</transition>
</task-node>
<end-state name="end"></end-state>
</process-definition>
<?xml version="1.0" encoding="UTF-8"?>
<model name="pac01:pac01" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<imports>
<!– Import modeles de definitions –>
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<namespaces>
<!– Import nouveau namespace defini par ce modele –>
<namespace uri="pac01.pac01" prefix="pac01"/>
</namespaces>
<types>
<type name="pac01:debut">
<parent>bpm:startTask</parent>
<mandatory-aspects>
<aspect>pac01:persRedac</aspect>
</mandatory-aspects>
</type>
<type name="pac01:redac">
<parent>bpm:workflowTask</parent>
<overrides>
<property name="bpm:packageItemActionGroup">
<default>edit_package_item_actions</default>
</property>
</overrides>
</type>
</types>
<aspects>
<aspect name="pac01:persRedac">
<associations>
<association name="pac01:persRedac">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</associations>
</aspect>
</aspects>
</model>
<config evaluator="node-type" condition="pac01:debut" replace="true">
<property-sheet>
<separator name="sep1" display-label-id="users_and_roles" component-generator="HeaderSeparatorGenerator" />
<show-association name="pac01:persRedac" display-label-id="pac_assign_redac" />
</property-sheet>
</config>
<config evaluator="node-type" condition="pac01:redac" replace="true">
<property-sheet>
<separator name="sep2" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
<show-property name="bpm:description" component-generator="TextAreaGenerator" read-only="true"/>
</property-sheet>
</config>
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.