and more in a single search tool across platforms. Read the announcement here. |
12/29/2023 04:23 AM
Hi Team,
We have a use case where in the workflow we need to have different approval for new account and entitlement addition. We are using entitlementvalue variable in the if else condition to redirect to the desired approval(working completely fine).
Issue - Whenever user raised a request for account and entitlement(in one request) and when approval reject the new account request, for new account approval it shows request rejected but "request still stays in pending state" and internally for new account it says "access pending"
We are ending the request when separate new account request is rejected. made the changes by taking reference from below link
How to configure All Approval Workflow to create t... - Saviynt Forums - 28987
12/29/2023 04:32 AM
Its just UI display issue. What is status of request on ars_requests table?
you can try using Gen 2 Ui.
12/29/2023 04:41 AM
Hi Rushikesh,
It is "1" and even when i try to raise a new request for same user Saviynt doesn't allow me.
FYI This issue doesn't seem to happen when we only raise an account creating request and reject it.
12/29/2023 04:46 AM
Then you have issue in workflow. Please share xml of workflow
12/29/2023 05:13 AM - edited 12/29/2023 06:40 AM
client VDI access couldn't add, If you have, could you please provide any sample workflow?
Java "grant access" and "reject account" method points to "END request" and reject access to "all approval complete check", Made changes as per the below doc
How to configure All Approval Workflow to create t... - Saviynt Forums - 28987
Thanks
12/29/2023 09:26 AM
Provide screenshot
12/30/2023 03:39 AM - edited 12/30/2023 03:39 AM
Hi Rushikesh,
workflow screenshot (we will be using different email template for account reject so used a different reject block)
Thanks
12/30/2023 07:42 AM
Since this are xml level changes need xml , click on top right corner and provide same
12/30/2023 07:43 AM
There should be only one end block in workflow
12/30/2023 08:31 AM
12/30/2023 08:39 AM
Make account auto approve & apply entitlements only under security system - create task action
12/30/2023 09:16 AM
As per the requirement we need to have a separate approval for create account.
12/30/2023 09:59 AM
What is workflow type ?
is it parrllel
12/30/2023 10:08 AM
yes, parallel workflow..
12/30/2023 11:21 AM
Add if condition before account check
Since both account and entitlement objects follow the same flow in your workflow and accounts do not have any owners, it move to admin approval by default.
To segregate the account and entitlement flows in the same workflow, use an if-else condition like:
entitlement!=null
Sample Workflow Node
12/30/2023 11:30 AM
Account and entitlement separation are already added, and approval goes to the correct person/separate person for entitlement and account, It is just when we reject both the request (account and entitlement) request still stays in pending status.
12/30/2023 07:06 PM
Change below
<java class="com.saviynt.workflowmgt.rejectaccess"
method="denyAccess" name="account reject">
<arg>
<object expr="#{requestaccesskey}"/>
</arg>
<transition to="All Approvals Complete Check"/>
</java>
12/30/2023 11:31 PM - edited 12/31/2023 12:25 AM
This should make the workflow work similar like serial, but our main concern was, as the approval for account and entitlement is different if the approver rejects the account, it should end the request that is why me used "End request" for account reject.
if we make account reject "All Approvals Complete Check" then if account is rejected and entitlement is approved it will create a add access task for entitlement which will be of no use.
12/31/2023 09:19 AM
Thats purpose of all approvals check. To wait until all approvals are completed. Approving entitlement without account is not making sense and it will not create task as account is not approved
12/31/2023 09:28 AM
yes..Understood but I am emphasizing on the case when entitlement was approved by the owner but not account because we have separate approval configured. in that case when all approver action is taken entitlement/add access task will be generated which will just error out as no account is created. we are trying to end the request if account is rejected so no task gets generated.
12/31/2023 10:17 AM
This can’t be achieved both account and access should be go together for approval. In workflow you can’t check if account accepted or rejected
12/31/2023 11:32 AM
Anything that can be done on XML end? Have configured two different reject block for entitlement and account and account reject to "end request"
<java class="com.saviynt.workflowmgt.rejectaccess"
method="denyAccess" name="account reject">
<arg>
<object expr="#{requestaccesskey}"/>
</arg>
<transition to="End Request"/>
</java>
but request doesn't move to complete state and stays in pending..
12/31/2023 04:19 PM
Change end request to all approvals check