Leveraging Intelligent Recommendations for Operational Transformation. AMS Partners Click HERE | EMEA/APJ Click HERE |
02/22/2024 08:03 AM
Hello,
We are using a REST connector.
To prevent to create an account without aprofile, we activated the parameter EntitlementOnly.
But with this configuration , when we try to make a request to update only a dynamic attribut without changing the entitlement no task for an updateaccount is created
Is it a normal behaviour ?
Is ti possible to update the account'sattribut only with this configuration ?
Regards
Antoine
Solved! Go to Solution.
02/22/2024 08:41 AM
@Antoine Yes this is the expected behavior. If the create task action is set as "EntitlementsOnly" then account level tasks won't be created.
02/22/2024 08:41 AM - edited 02/22/2024 08:57 AM
To mitigate this, you can use validation checks(if/else block) in your workflow to handle such scenarios. Sharing a sample condition for your reference.
(ars_requests.requesttype == 3 and entitlement.entitlement_value == null) or (ars_requests.requesttype == 12 and entitlement.entitlement_value == null)
Let me know if you need further help!
02/22/2024 09:02 AM
Yes. Could you please give me more detail ?
What validation check means ? Do you have some example to share ?
Thanks in advance
02/22/2024 09:04 AM
@Antoine I have edited my reply to include the Sample if/else condition to be included in the workflow.
02/22/2024 09:39 AM
Hi @Antoine , you can make your entitlement type as mandatory
Now , they have to request one when requesting a new account and updates will work as usual as atleast one entitlement will be attached at all times after creation.
Thanks,
Amit
If this answers your query, Please ACCEPT SOLUTION and give KUDOS.
02/22/2024 12:11 PM
Our requirement is to prevent the creation of the account if the entitlement'approval is rejected.
The account is approved by the user's manager and the entilement by the owner of the entitlement.
We need to have the ability to update the dynamic attribut of the account from the ARS.
We want ro reject the account task if the entitlement approval is rejected. (without the entitlementOnly parameter)
02/22/2024 07:28 PM
Keep Accounts Update Auto Approved. and if all request is approved then only create Account tasks
If you need further help share workflow
02/24/2024 12:52 PM
Hello,
I have the issue as mentioned in the Refer Method createAccessForApproved not available
,"org.jbpm.pvm.internal.wire.WireException: method createAccessForApproved(java.lang.Long) is not available on object com.saviynt.workflowmgt.grantaccess@6d9c2afd (com.saviynt.workflowmgt.grantaccess)
How I can fix this isse ?
Since I made a modification in xml mode ,
When I click on "Edit workflow" , the xml editor is automatically loaded.
I can't switch back to Graphical mode.
How I can load the worflow in the graphical mode ?
02/25/2024 10:21 AM
02/26/2024 12:17 AM
OK thanks .
And about the java error "createAccessForApproved(java.lang.Long) is not available " in your suggested link.
Is there a workaround to make it works ?
This issue has been encountered in the last topic of your suggested link
Thanks
02/26/2024 07:47 PM
Please share workflow in zip
02/26/2024 11:26 PM
02/27/2024 09:02 PM - edited 02/27/2024 09:02 PM
Please test attached and share logs
<?xml version="1.0" encoding="UTF-8"?>
<process key="AOS_Test" name="AOS_Test" xmlns="http://jbpm.org/4.4/jpdl">
<start name="Start">
<transition to="foreachAccessRequest"/>
</start>
<foreach in="#{RequestAccessKeys}" name="foreachAccessRequest" var="requestaccesskey">
<transition to="entitlementWF"/>
</foreach>
<java class="com.saviynt.workflowmgt.rejectaccess"
method="denyAccess" name="Reject">
<arg>
<object expr="#{requestaccesskey}"/>
</arg>
<transition to="All Approvals Complete Check"/>
</java>
<java class="com.saviynt.workflowmgt.grantaccess"
method="createAccessForApporved" name="Grant">
<arg>
<object expr="#{requestaccesskey}"/>
</arg>
<transition to="All Approvals Complete Check"/>
</java>
<decision name="entitlementWF">
<transition to="MyselfForAccount">
<condition expr="#{(entitlementslist.get(requestaccesskey) != null ) eq true }"/>
</transition>
<transition to="MyselfForEnt">
<condition expr="#{(entitlementslist.get(requestaccesskey) != null ) ne true }"/>
</transition>
</decision>
<task name="MyselfForAccount">
<assignment-handler class="com.saviynt.workflowmgt.ArsCustomAssignmentHandler">
<field name="fieldname">
<string value="CustomQuery___select userkey from users where username=test1___Any Owner Approval Required"/>
</field>
<field name="mitigatingControlRisk">
<string value="[]"/>
</field>
</assignment-handler>
<transition name="Approved By MyselfForAccount" to="Grant"/>
<transition name="Rejected By MyselfForAccount" to="Reject"/>
<on event="end">
<event-listener class="com.saviynt.workflowmgt.JBPMTaskEventListner">
<field name="msg">
<string value="null"/>
</field>
</event-listener>
</on>
</task>
<task name="MyselfForEnt">
<assignment-handler class="com.saviynt.workflowmgt.ArsCustomAssignmentHandler">
<field name="fieldname">
<string value="CustomQuery___select userkey from users where username=test2___Any Owner Approval Required"/>
</field>
<field name="mitigatingControlRisk">
<string value="[]"/>
</field>
</assignment-handler>
<transition name="Approved By MyselfForEnt" to="Grant"/>
<transition name="Rejected By MyselfForEnt" to="Reject"/>
<on event="end">
<event-listener class="com.saviynt.workflowmgt.JBPMTaskEventListner">
<field name="msg">
<string value="null"/>
</field>
</event-listener>
</on>
</task>
<join multiplicity="#{quorum}" name="All Approvals Complete Check">
<transition to="End Request"/>
</join>
<java class="com.saviynt.workflowmgt.endrequest"
method="arsendrequest" name="End Request">
<arg>
<object expr="#{reqid}"/>
</arg>
<transition to="endRequest"/>
</java>
<end name="endRequest"/>
</process>
02/28/2024 11:18 AM
Hello,
I made some changes to make it works . I shared the last version of my workflow.
A last point, I can't update the table worflowhistory as mentionned in the step4
The table workflowhistory does not appears in the Data Analyzer.
Error : SELECT command denied to user for table 'workflowhistory'
Is it normal ?
02/28/2024 01:09 PM
Run query from analytics with preview option
02/28/2024 01:46 PM
Or download transport zip and re import zip
02/29/2024 06:05 AM
02/29/2024 11:42 PM
OK . I found what my problem was.
You should not edit and save your workflow directly in the xml editor.
But to make some changes in the workflow , export it , apply changes an re import from transport service
In that way, it s working fine