[Midpoint-dev] How to assign Approver Dyanmically
Pavol Mederly
pavol.mederly at gmail.com
Tue Aug 19 15:39:42 CEST 2014
Hello,
the MidpointFunctionsImpl.getManagersOidsExceptUser(...) method takes
all the parent org units of a user, and from each one it select those
user(s) who have a relation to it of type
/{http://midpoint.evolveum.com/xml/ns/public/common/org-3}manager//
/
Actually, the code is quite old and I've not tested it recently whether
it still works -- it is meant mainly as an example of how to use Java
functions to dynamically define workflow approvers.
You can write anything you need in groovy (or in any other supported
scripting language). If you need to call Java code, you can implement it
e.g. in MidpointFunctionsImpl class and use it from you workflows as
indicated by that example.
If you would need further help with this issue, just let me know.
Best regards,
Pavol
On 19. 8. 2014 11:01, Sai Chandra wrote:
>
> Hi Team,
>
>
> I would like to get some information regarding the Approval Workflows
> that we have in the Midpoint.
>
> Can some one suggest me how can we assign the app rover dynamically.
>
> I have followed the below link but was not able to understand the code
> *midpoint.getManagersOidsExceptUser.*From where this data is being
> pulled,as we donot enter anywhere the managerID's in the midpoint.
>
> https://wiki.evolveum.com/display/midPoint/Some+examples
>
>
> Thanks
>
> Saichandra
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolveum.com/pipermail/midpoint-dev/attachments/20140819/8efe1903/attachment.html>
More information about the midPoint-dev
mailing list