AnsweredAssumed Answered

dynamic create a transition insert to a PorcessDefinition

Question asked by weiyi2011 on Mar 22, 2011
Latest reply on Mar 22, 2011 by frederikheremans1
hi all.


ActivityImpl source = null;
ActivityImpl destination = null;
      
//……
// before: (usertask1)–sf1–>(usertask2)
      
TransitionImpl transition = new TransitionImpl("mytransition", def);
transition.setProperties(vals);
transition.setSource(source);// usertask1(current task id is 10)
transition.setDestination(destination);// usertask21
// (usertask1)–mytransition–>(usertask21)
      
taskService.complete("10", vals);// task complete, and I want task execute to 'usertask21'

Outcomes