break a cardinality

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member II

break a cardinality

how to break a  cardinality of subProcess in activiti 5.19.0 ?

lets assume a Subprocess is start with some cardinality lets assume 3.
in subprocess have some userTask . in one user Task have to take decision if user select accepted option then cardinality get break means rest of the  process work with one cardinality. 

5 Replies
Senior Member

Re: break a cardinality

What's meaing of cardinality and breaking cardinality?

Highlighted
Active Member II

Re: break a  cardinality

if we create a multi-instance of a task or subprocess then we provide a cardinality. 
breaking a cardinality means stop creating multiple-instance of task

Highlighted
Senior Member

Re: break a cardinality

You can use EL expression of loop cardinality.

If you want to skip tha task of multiple-instance, you should EL expression of loop cardinality and set the variable of EL expression to 0.

 

In the following example, set the variable 'count'  to 0.

Highlighted
Senior Member II

Re: break a cardinality

If you are looking to break the loop when a certain conditions met, use the completion condition attribute "completionCondition". For more details please refer Activiti User Guide: Multi-instance 

Highlighted
Active Member II

Re: break a  cardinality

thanx sir its help me alot Smiley Happy