[midPoint] Ref Query for approverRef in approvalSchema

Florin. Stingaciu fstingaciu at mirantis.com
Wed Nov 16 22:42:28 CET 2016


Hello,

I'm trying to perform a reference query on the following object for example:

....
   <approvalSchema>
      <level>
         <approverRef oid="5b70c5ba-b3a2-4528-bfc1-cc74323eee9c"
type="c:UserType"><!-- user1--></approverRef>
         <evaluationStrategy>firstDecides</evaluationStrategy>
      </level>
   </approvalSchema>
.......

Much like you would do a ref query for the targetRef for an assignment
using path: assignment/targetRef, I tried using the
approvalSchema/level/approverRef path, however I'm getting the following
error:

2016-11-16 21:16:55,229 [] [http-bio-8080-exec-1] ERROR
(com.evolveum.midpoint.model.impl.controller.ModelController): Couldn't
search objects in repository, reason: Path for RefFilter
(approvalSchema/level/approverRef) doesn't point to a reference item within
Ent:RRole (jaxb=RoleType) (class
com.evolveum.midpoint.util.exception.SystemException)

Is there an easy way to ref query by approverRef within an approvalSchema?

Thanks,
-F
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20161116/226329d9/attachment.htm>


More information about the midPoint mailing list