AnsweredAssumed Answered

how to call transition(task) based on a condition

Question asked by seshu on Feb 8, 2007
Latest reply on Nov 7, 2007 by raweck

I am working on a work flow where i need to call a task based on a condition. i.e i will have only one button on UI and based on some condition, i will call next task. How can i achieve this functionality using alfresco javascript? You can also suggest other possible ways.

i need something like this to work
var name = bpm_package.children[0].properties["pm:type"];
if (name == "something")
     <transition name="escalate" to="level1" />
    <transition name="escalate" to="level2" >