AnsweredAssumed Answered

Decision node

Question asked by roseta on May 4, 2011
Latest reply on Feb 15, 2012 by jpotts
I would like to introduce a decision node in my Advanced Workflow, but I'm not sure how can I do it. I'm using Alfresco 3.4d and xml files for advanced wokflows… So far I guess I must be some code like this one, in the processdefinition file, but I't doesn't work, any ideas, please?




<task-node name="informInitiator">
           <task name="new:informarInitiatorTask" swimlane="initiator"/>
            <transition name="ok" to="join1"/>
            <transition name="reject" to="join1"/>         
    </task-node>
   
   <join name="join1">
      <transition name="" to="inform"></transition>
   </join>
  
   
   <decision name="inform">
         <transition name="" to="informarTutor">
            <condition>#{bpm_package.children[0].parent == "Tutor"}</condition>
         </transition>
         <transition name="" to="informStudent">
            <condition>#{bpm_package.children[0].parent == "Student"}</condition>
         </transition>
         <transition name="reject" to="rejectedTopic"/>
   </decision>


I would really appreciate some comments, please! Or could anyone give me some link where a decision node is used? Thanks!

Outcomes