[Midpoint-dev] Issues in creating approval workflow
Shelly Piplani
shelly.piplani at ilantus.com
Thu Oct 30 13:38:23 CET 2014
Hi Pavol,
I have increased the log level.
Attached is the log file for reference and also the SensitiveRole3 script which I am trying to assign to the user.
The error I am receiving in the logs is :
groovy.lang.MissingPropertyException: No such property: user for class: Script7 (new) approverExpression
com.evolveum.midpoint.util.exception.ExpressionEvaluationException: groovy.lang.MissingPropertyException: No such property: user for class: Script7 (new) approverExpression
at com.evolveum.midpoint.model.common.expression.script.jsr223.Jsr223ScriptEvaluator.evaluate(Jsr223ScriptEvaluator.java:124) ~[model-common-3.0.jar:na]
at com.evolveum.midpoint.model.common.expression.script.ScriptExpression.evaluate(ScriptExpression.java:108) ~[model-common-3.0.jar:na]
at com.evolveum.midpoint.model.common.expression.script.ScriptExpressionEvaluator.transformSingleValue(ScriptExpressionEvaluator.java:58) [model-common-3.0.jar:na]
at com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator.evaluateScriptExpression(AbstractValueTransformationExpressionEvaluator.java:276) [model-common-3.0.jar:na]
Looks like we need to define this user variable which I am using in the script of SensitiveRole3. But not sure how to exactly define that.
Please provide your inputs for the same.
PS :
I am not receiving any mail if I am posting any query to
midpoint-dev at lists.evolveum.com . I am coordinating with my team mate SaiChandra who is forwarding me the replies to every query which I am posting to midpoint-dev at lists.evolveum.com. Request you to look into this.
Regards,
Shelly
________________________________
From: Sai Chandra
Sent: 09 October 2014 21:41
To: Shelly Piplani
Subject: RE: [Midpoint-dev] Issues in creating approval workflow
Thanks and Regards
Saichandra.T
From: midPoint-dev [mailto:midpoint-dev-bounces at lists.evolveum.com] On Behalf Of Pavol Mederly
Sent: 09 October 2014 14:12
To: midpoint-dev at lists.evolveum.com
Subject: Re: [Midpoint-dev] Issues in creating approval workflow
Shelly,
you (and I as well) need the stack trace for the error you've mentioned. Stack traces are written to the log if the logging is at DEBUG or TRACE levels.
So, set you debug level to TRACE for Workflow module, try again, and post the log here.
Best regards,
Pavol
On 8. 10. 2014 17:37, Shelly Piplani wrote:
Hi ,
I am trying to create approval workflow. Ihave created a manager for an Organisation Unit and created a role called SensitiveRole3 as given in the following link:
https://github.com/Evolveum/midpoint/blob/master/samples/roles/sensitive-role-3.xml
[https://avatars3.githubusercontent.com/u/6286905?v=2&s=400]<https://github.com/Evolveum/midpoint/blob/master/samples/roles/sensitive-role-3.xml>
midpoint/sensitive-role-3.xml at master · Evolveum/midpoint · GitHub
midpoint - MidPoint Identity Manager
Read more...<https://github.com/Evolveum/midpoint/blob/master/samples/roles/sensitive-role-3.xml>
However, I have removed the following from the role:
<automaticallyApproved>
<description>If the user works in F0006 (Scumm Bar), the assignment of this role is automatically approved for him.</description>
<script>
<code>midpoint.isMemberOf(user, midpoint.getOrgByName("F0006").getOid())</code>
</script>
</automaticallyApproved>
After assigning that Organisation unit to the user, I am trying to assign SensitiveRole3 to this user.
I am getting the following error in idm logs:
2014-10-08 20:53:21,861 [MODEL] [http-8008-5] ERROR (com.evolveum.midpoint.wf.impl.jobs.JobController): Couldn't send a request to start a process instance to workflow management system, reason: Couldn't evaluate approvers expressions
2014-10-08 20:53:21,910 [MODEL] [http-8008-5] ERROR (com.evolveum.midpoint.wf.impl.processors.primary.PrimaryChangeProcessor): Workflow process(es) could not be started, reason: Workflow process instance creation could not be requested.
Please provide your inputs on this.
Regards,
Shelly
This message contains information that may be privileged or confidential and is the property of ILANTUS Technologies. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
_______________________________________________
midPoint-dev mailing list
midPoint-dev at lists.evolveum.com<mailto:midPoint-dev at lists.evolveum.com>
http://lists.evolveum.com/mailman/listinfo/midpoint-dev
This message contains information that may be privileged or confidential and is the property of ILANTUS Technologies. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
This message contains information that may be privileged or confidential and is the property of ILANTUS Technologies. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
This message contains information that may be privileged or confidential and is the property of ILANTUS Technologies. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolveum.com/pipermail/midpoint-dev/attachments/20141030/1c1304f0/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sensitive role3.txt
URL: <http://lists.evolveum.com/pipermail/midpoint-dev/attachments/20141030/1c1304f0/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: idm.log
Type: application/octet-stream
Size: 117088 bytes
Desc: idm.log
URL: <http://lists.evolveum.com/pipermail/midpoint-dev/attachments/20141030/1c1304f0/attachment-0001.obj>
More information about the midPoint-dev
mailing list