<div dir="ltr"><div><div><div><div>Hi Alex,<br><br></div>As of Midpoint 3.6, there is no REST API for Task items (and I don't think 3.7 has it either). <br>However, you can use an overlay and implement it yourself. I've done it and it's not difficult.<br><br></div>I started from this example: <a href="https://github.com/Evolveum/midpoint-custom-service">https://github.com/Evolveum/midpoint-custom-service</a><br><br></div>Getting a user's work items:<br><br>ObjectQuery query = QueryBuilder.queryFor(WorkItemType.class,<br>                        prismContext)<br>                                                .item(WorkItemType.F_ASSIGNEE_REF)<br>                                                .ref(user.getOid())<br>                                                .build();<br>                SearchResultList<WorkItemType> workItems = modelService.searchContainers(<br>                        WorkItemType.class, query, null, task, result);<br><br></div>For completing a workitem,  use workflowService.completeWorkItem<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-06 12:45 GMT-02:00 Doler, Alexander Earl (LATCO - Buenos Aires) <span dir="ltr"><<a href="mailto:adoler@deloitte.com" target="_blank">adoler@deloitte.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="#0563C1" vlink="#954F72" lang="ES-AR">
<div class="m_-4592787751577368839WordSection1">
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:normal;text-autospace:none">
<span>Hello,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:normal;text-autospace:none">
<span><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:normal;text-autospace:none">
<span lang="EN-US">I am working with MidPoint’s REST API. I would like to know if anyone has experience with, or if there is a way to obtain all of the approval tasks that are pending for a user, and if so, if there is a way
 to approve these work items.<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:normal;text-autospace:none">
<span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:normal;text-autospace:none">
<span lang="EN-US">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:normal;text-autospace:none">
<span lang="EN-US">Alex<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:normal;text-autospace:none">
<span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
<br></blockquote></div><br></div>