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–>