We have a use case of Request Approval Process as below.
1. Manager Approval (New Account and Add Access)
2. After Manager is approved
3. Check If entitlement is ROLE_APP_ADMIN then the Request (New Account and Add Access) both should go for Resource Owner Approval.
4. After Resource Owner is approved New Account and Add access Tasks need to create.
For this I build the workflow as shown below.
Issue - After Manager is approved only Add Access (with entitlement name as ROLE_APP_ADMIN if condition match) is going for Resource Owner approval and New Account Task is getting created as it is not going for Resource Owner Approval.
But, I want New Account and Add Access both should go for Resource Owner Approval. How can we send both New Account and Add Access to Resource Owner for approval ??
The above behavior is as expected.
In the approval workflow, if the account and entitlement are requested then workflow breaks into account and entitlements tasks. Since the account doesn't have the entitlement, the if-else condition will evaluate to false for account always and it won't go for RO approval.
You can try the below approach and see if it works.
Select the Security system-> Create Task Action-> EntitlementsOnly and then test with same workflow.
If this reply answered your question, please accept it as Solution to help others who may have a similar problem.