[jboss-user] [JBoss jBPM] - Re: Ending tasks manually
frinux
do-not-reply at jboss.com
Wed May 27 11:40:55 EDT 2009
All I see in the debug is that jBPM is taking the wrong transition. No error.
Here is the interesting part of the log :
GraphElement:180 - event 'node-leave" on 'TaskNode(valider_demande)' for 'Token(/)'
| GraphElement:180 - event 'transition' on 'Transition(validee) for 'Token(/)'
| GraphElement:180 - event 'node-enter' on 'MailNode(notifier_acceptation) for 'Token(/)'
|
And here is my process definition:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="demande">
|
| <start-state name="saisir_demande">
| <transition to="notifier_valideur" name="to notifier_valideur"></transition>
| </start-state>
|
| <mail-node name="notifier_valideur" to="#{demande.valideur.email}" template="task-assign">
| <subject>#{mailSubject}</subject>
| <text>#{mailText}</text>
| <exception-handler exception-class="java.lang.Exception">
| <action name="InvalidEmailAddressExceptionHandler" class="logica.actions.InvalidEmailAddressExceptionHandler"></action>
| </exception-handler>
| <transition to="valider_demande" name="to valider_demande"></transition>
| </mail-node>
|
| <task-node name="valider_demande">
| <description>
| Le valideur doit valider ouy refuser manuellement la demande émise
| </description>
| <task name="valider_demande">
| <description>
| Le valideur doit valider ou refuser la demande de congé effectuée par le collaborateur
| </description>
| <assignment class="logica.actions.ValideurAssignmentHandler"></assignment>
| <controller class="logica.actions.EndTaskControllerHandler"></controller>
| </task>
| <transition to="notifier_acceptation" name="validee"></transition>
| <transition to="notifier_refus" name="refusee"></transition>
| </task-node>
|
| <mail-node name="notifier_acceptation" to="#{demande.demandeur.email}">
| <subject>#{mailSubject}</subject>
| <text>#{mailText}</text>
| <transition to="notifier_demande_validee" name="to notifier_demande_validee"></transition>
| </mail-node>
|
| <decision name="informer_chef_projet">
| <handler class="logica.actions.CheckChefProjetDecisionHandler"></handler>
| <transition to="notifier_chef_projet" name="oui"></transition>
| <transition to="cloturer" name="non"></transition>
| </decision>
|
| <mail-node name="notifier_chef_projet" to="#{demande.chefProjet.email}" async="true">
| <subject>
| #{mailSubject}
| </subject>
| <text>
| #{mailText}
| </text>
| <transition to="cloturer" name="chefprojet notifie"></transition>
| </mail-node>
|
| <task-node name="cloturer">
| <task name="cloturer">
| <description>
| La demande est considérée comme traitée. Cette finalisation est une tâche manuelle
| </description>
| <assignment actor-id="system"></assignment>
| <controller class="logica.actions.EndTaskControllerHandler"></controller>
| </task>
| <transition to="fin" name="to fin"></transition>
| </task-node>
|
| <task-node name="notifier_demande_refusee">
| <task name="notifier_demande_refusee">
| <assignment class="logica.actions.DemandeurAssignmentHandler"></assignment>
| </task>
| <transition to="fin_refus" name="to fin_refus"></transition>
| </task-node>
|
| <mail-node name="notifier_refus" to="#{demande.demandeur.email}">
| <subject></subject>
| <text></text>
| <transition to="notifier_demande_refusee" name="to notifier_demande_refusee"></transition>
| </mail-node>
|
| <task-node name="notifier_demande_validee">
| <task name="notifier_demande_validee">
| <assignment class="logica.actions.DemandeurAssignmentHandler"></assignment>
| <controller class="logica.actions.EndTaskControllerHandler"></controller>
| </task>
| <transition to="informer_chef_projet" name="to informer_chef_projet"></transition>
| </task-node>
|
| <node name="relance_auto_1">
| <transition to="notifier_valideur" name="relance_auto_1 effectuee"></transition>
| </node>
|
| <node name="relance_auto_2">
| <transition to="notifier_valideur" name="relance_auto_2 effectuee"></transition>
| </node>
|
| <end-state name="fin"></end-state>
|
| <end-state name="fin_refus"></end-state>
|
| </process-definition>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233649#4233649
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233649
More information about the jboss-user
mailing list