cancel
Showing results for 
Search instead for 
Did you mean: 

Condition based multi level approvals

skans100
Champ in-the-making
Champ in-the-making
I need to implement a workflow with multi level approvals for some entities based on the data available in the entity.<!–break–>
Ex: Account entity: if account.balance < 10000, it gets approved automatically<!–break–>
If account.balance is between 10000 and 20000, then it has to go through one level of approval<!–break–>
If account.balance > 20000, then it has to go through two levels of approvals<!–break–>
<!–break–>
Similarly, if user is creating an object with interest to be applied to the account:<!–break–>
if interest % is between 0 to 3, then it gets approved automatically<!–break–>
If interest % is between 4 to 8, then it has to go through one level of approval<!–break–>
If interest % is > 9, then it has to go through two levels of approvals<!–break–>
etc<!–break–>
<!–break–>
For each entity, the rules to be applied during approval vary.<!–break–>
<!–break–>
Can you please point me to some references that talk about implementing this kind of scenarios? Thanks.<!–break–>
2 REPLIES 2

vasile_dirla
Star Contributor
Star Contributor
I guess you have some service tasks, and you need to have a dynamically added "user tasks" in some cases like: "account.balance is between 10000 and 20000," and in some cases just to do something and automatically advance the flow without human interaction.

If this is your case, I would try to do it by extending UserTaskActivityBehavior and use it with a Service task.

martin_grofcik
Confirmed Champ
Confirmed Champ
I would use simple Exclusive Gateway for this usecase.

Regards
Martin