Decision node
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2011 12:03 PM
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?
I would really appreciate some comments, please! Or could anyone give me some link where a decision node is used? Thanks!
…<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!
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2012 03:38 PM
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:
Or something like that.
You might find this workflow tutorial helpful. It includes some decision examples.
Jeff
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
