You create a condition for requisition total > 1000 and then you then in the rules to pick the approval group... If you have total <=1000, then this rule will not be satisfied and no groups will be picked.. so this will act as auto approval.. but for this to work, you have to set the property Allow empty approver group or list.. to true at the group level and also at the transaction type level i guess...
How are you setting up approval greater than 1000 USD?
I guess u have created a condition called requisition total > 1000
then u would hv also created a approval group XXX (with either static or dynamic list)
Then u would hv created a rule with this condition requisition total > 1000, then use this approval group XXX...
when u create a req for 1001 USD, the person in approval group XXX will come as approvers...but when u create for 1000 USD or less than that,
there is not rule(condition) satisfying and hence no approval group will be picked up...
the trickiest point here is, if there is no approvers, AME will throw an error. To override or suppress this error for empty approval list,
In AME, set the attribute 'Allow empty approval groups' and 'Auto Approve' to true for this transaction type and it should get auto approved.
But can u pls help me on the following scenario: My requirement is a requisition should be auto-approved whenver the requestor='ABC'. If requestor is anyone except 'ABC' then it should follow the rules created with the approval groups.
Missed your reply.. Did you figure out?? You have the use the following steps
1) In AME, check if the attribute requestor name or id exists.. if not you create a new custom attribute and derive the requisition id using the dynamic sql
2) Then create condition based on this attribute..
3) Now, use this attribute in the rules for the getting the approval groups...
Thanks again for that suggestion.
But I am already done with that requirement.
What I did is - Created a function which will check who is the requester. If requestor is 'ABC' then it will return a NULL, else it will return the name of the valid approver(in my case it was one key member of the project used).
I called this function while defining the dynamic approver, and it served the purpose :)