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"/>         
   <join name="join1">
      <transition name="" to="inform"></transition>
   <decision name="inform">
         <transition name="" to="informarTutor">
            <condition>#{bpm_package.children[0].parent == "Tutor"}</condition>
         <transition name="" to="informStudent">
            <condition>#{bpm_package.children[0].parent == "Student"}</condition>
         <transition name="reject" to="rejectedTopic"/>

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