cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic create a transition insert to a PorcessDefinition

weiyi2011
Champ in-the-making
Champ in-the-making
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'
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Creating dynamic transitions is not supported. You should model all activities and transitions in your bpmn20.xml file.