cancel
Showing results for 
Search instead for 
Did you mean: 

Decision node

roseta
Champ in-the-making
Champ in-the-making
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!
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
I know this is an old thread. Sorry no one had a response for you at the time you asked your question.

It appears to me that your bpm_package.children[0].parent reference is not quite right. If you are trying to make a decision based on a property of the workflow item's parent, you need to specify what that property is. So it would look more like:

bpm_package.children[0].parent.properties['cm:name'] == 'Tutor'‍

Or something like that.

You might find this workflow tutorial helpful. It includes some decision examples.

Jeff