cancel
Showing results for 
Search instead for 
Did you mean: 

a problem

jonlee
Champ in-the-making
Champ in-the-making
Hi,


the diagram shows a simple process, and the process definition is very easy including 2 userTasks and 3 transitions.

the problem is that if the current node is task2, how can it back to task1. I want to do it through activiti's apis, and the condition is the process definition must be same to the original diagram. it means the process definition is not changed, not beging used exclusive gateway.

How should I do, thanks to any advices, my project required this functionality.

diagram:
3 REPLIES 3

jonlee
Champ in-the-making
Champ in-the-making
if using jbpm4, it can dynamically create nodes and transitions, and the process instance will execute as the new nodes and transitions.

in this period,  the process definition is not changed. it always the simple process diagram.

if using activiti, how should I do? thanks

jbarrez
Star Contributor
Star Contributor
If you want it like that, you will need to have a sequence flow back to task 1, that's how BPMN works.

It may have worked in jBPM4, but I'm quite sure it wont work in all cases and probably has worked by accident (I should know ;-))

jonlee
Champ in-the-making
Champ in-the-making
thanks