[Midpoint-dev] Issues in creating approval workflow

Shelly Piplani shelly.piplani at ilantus.com
Thu Oct 30 14:51:40 CET 2014


Hi Ivan,


Thanks for the reply.

Can you please make this option as false so that I can receive the emails.


Regards,

Shelly

________________________________
From: Ivan Noris <Ivan.Noris at evolveum.com>
Sent: 30 October 2014 19:13
To: Shelly Piplani
Cc: midpoint-dev at lists.evolveum.com; Shelly piplani
Subject: Re: [Midpoint-dev] Issues in creating approval workflow

Hi Shelly,

regarding your request to check why you don't receive any emails to the list:

I've checked your subscription status and all seems to be OK. But the following option is true for you:

Avoid duplicate copies of messages? When you are listed explicitly in the To: or Cc: headers of a list message, you can opt to not receive another copy from the mailing list. Select Yes to avoid receiving copies from the mailing list; select No to receive copies

So if the mail is addressed to the list and you are in the To / Cc headers, you will not get the same mail from the list.

Regards,
Ivan

________________________________
From: "Shelly Piplani" <shelly.piplani at ilantus.com>
To: midpoint-dev at lists.evolveum.com
Cc: "Shelly piplani" <shelly1061 at gmail.com>, "Shelly Piplani" <shelly.piplani at ilantus.com>
Sent: Thursday, October 30, 2014 1:38:23 PM
Subject: Re: [Midpoint-dev] Issues  in creating approval workflow


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.
_______________________________________________
midPoint-dev mailing list
midPoint-dev at lists.evolveum.com
http://lists.evolveum.com/mailman/listinfo/midpoint-dev



--
  Ing. Ivan Noris
  Senior Identity Management Engineer
  evolveum.com
  ___________________________________________
           "Idem per idem - semper idem Vix."
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/f9ea4740/attachment-0001.html>


More information about the midPoint-dev mailing list