cancel
Showing results for 
Search instead for 
Did you mean: 

HI,I want to know how to set dynamic complete conditions of multiInstance?

tobebetter9527
Champ in-the-making
Champ in-the-making

HI, I want to know how to set dynamic complete conditions of multiInstance. For instance, I can set "${approved == false}" this time, next time ,I want to set "${nrOfActiveInstances  >= 5}" . Thank you !

1 REPLY 1

kalpesh_c2
Star Collaborator
Star Collaborator

Hi Tim,
Take one extra variable and assign a value to that variable and execute your condition based on the taken variable
Example : 

             if(extra_var == 1){
                      condition 1;
                     }else if(extra_var == 2){
                     condition 2;
              }‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

and update the value of extra_var every time to execute your code.