Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/06/2024 07:39 PM
We are trying to create a workflow where we need to reject the access request if someone request privileged entitlement on a non-privileged account, but I am not able to load the workflow after approving. Error in the logs shows as following: -'
2024-09-07T02:33:03.881+00:00 ecm null-ztkfc xml validation error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'reminder'. One of '{http://jbpm.org/4.4/jpdl":on "http://jbpm.org/4.4/jpdl":timer "http://jbpm.org/4.4/jpdl":transition}' is expected. [line=59 column=36 ]: org.xml.sax.SAXParseException; lineNumber: 59; columnNumber: 36; cvc-complex-type.2.4.a: Invalid content was found starting with element 'reminder'. One of '{"http://jbpm.org/4.4/jpdl":on "http://jbpm.org/4.4/jpdl":timer "http://jbpm.org/4.4/jpdl":transition}' is expected."
2024-09-07T02:33:03.881+00:00 ecm null-ztkfc xml validation error: cvc-complex-type.2.1: Element 'reminder' must have no character or element information item [children], because the type's content type is empty. [line=63 column=20 ]: org.xml.sax.SAXParseException; lineNumber: 63; columnNumber: 20; cvc-complex-type.2.1: Element 'reminder' must have no character or element information item [children], because the type's content type is empty.
XML for Workflow as follows:-
<?xml version="1.0" encoding="UTF-8"?>
<process key="Rajinder_Test_Priviliged_Rejection"
name="Rajinder_Test_Priviliged_Rejection" xmlns="http://jbpm.org/4.4/jpdl">
<start name="Start">
<transition to="foreachAccessRequest"/>
</start>
<foreach in="#{RequestAccessKeys}" name="foreachAccessRequest" var="requestaccesskey">
<transition to="check requesttype is Add Access"/>
</foreach>
<decision name="check requesttype is Add Access">
<transition to="check for Admin account">
<condition expr="#{(ars_requests.requesttype == 1) eq true }"/>
</transition>
<transition to="null">
<condition expr="#{(ars_requests.requesttype == 1) ne true }"/>
</transition>
</decision>
<decision name="check for Admin account">
<transition to="check For Privileged Ent">
<condition expr="#{(accounts.privileged == 'Y') eq true }"/>
</transition>
<transition to="null">
<condition expr="#{(accounts.privileged == 'Y') ne true }"/>
</transition>
</decision>
<decision name="check For Privileged Ent">
<transition to="Manager">
<condition expr="#{(entitlement_values.customproperty10 == 'Y') eq true }"/>
</transition>
<transition to="ARS_AUTO_REJECTION No Manager Available to Approve">
<condition expr="#{(entitlement_values.customproperty10 == 'Y') ne true }"/>
</transition>
</decision>
<task name="Manager">
<assignment-handler class="com.saviynt.workflowmgt.managerAssignmentHandler">
<field name="removeitemcf">
<string value="false"/>
</field>
<field name="mitigatingControlRisk">
<string value="[]"/>
</field>
</assignment-handler>
<transition name="Approved By Manager" to="null"/>
<transition name="Rejected By Manager" to="null"/>
<on event="start">
<event-listener class="com.saviynt.workflowmgt.JBPMTaskEventListner">
<field name="msg">
<string value="02.10.01.manager_notification"/>
</field>
</event-listener>
</on>
<on event="end">
<event-listener class="com.saviynt.workflowmgt.JBPMTaskEventListner">
<field name="msg">
<string value="null"/>
</field>
</event-listener>
</on>
<reminder duedate="3 days">
<text><![CDATA[
#{requestaccesskey}__02.10.02.manager_reminder__Manager
]]></text>
</reminder>
</task>
<task name="ARS_AUTO_REJECTION No Manager Available to Approve">
<assignment-handler class="com.saviynt.workflowmgt.ArsCustomAssignmentHandler">
<field name="fieldname">
<string value="UserGroup___ARS_AUTO_REJECTIONS___Any Owner Approval Required"/>
</field>
<field name="mitigatingControlRisk">
<string value="[]"/>
</field>
</assignment-handler>
<transition
name="Approved By ARS_AUTO_REJECTION No Manager Available to Approve" to="null"/>
<transition
name="Rejected By ARS_AUTO_REJECTION No Manager Available to Approve" to="null"/>
<on event="start">
<event-listener class="com.saviynt.workflowmgt.JBPMTaskEventListner">
<field name="msg">
<string value="1_Priviliged_Access_Rejection"/>
</field>
</event-listener>
</on>
<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>
ANY SUGGESTIONS?
Solved! Go to Solution.
09/06/2024 09:38 PM
Hi @rajsin , add grant, reject and end block and link it.
09/06/2024 09:47 PM - edited 09/06/2024 09:48 PM
@rajsin
You can try this below workflow.
You can add the custom blocks later on.
09/07/2024 05:02 AM
09/12/2024 06:03 PM
Thanks, i was able to activate the workflow and load it but get stuck with next issue.
We are saving priviliged value "Y" for entitlement value (Entitlement_Values.CustomProperty10.Default.label
Elevated Privilege) but looks like Entitlement_Values table is not accepted in workflow as request is not getting generated if the condition is true in workflow. Getting the following error:-
"javax.el.PropertyNotFoundException: Cannot resolve identifier 'Entitlement_Values'.
Can you please suggest what i can use for priviliged entitlement value?
09/12/2024 06:26 PM
Please ignore my previous request, workflow is working with entitlement.customproperty10 as suggested earlier. Thanks all.