<div dir="ltr"><div>Hi Pavel,</div><div>Thank you for the information.</div><div>I have found that <span class="gmail-token gmail-class-name">ItemApprovalProcessStateType (how to say it better) has been replaced by <span class="gmail-token gmail-class-name">ApprovalContextType</span></span></div><div>Is it ok to modify my code this way? It looks like it works<br></div><div><br></div><div><p><b>Original code</b></p>
<pre class="gmail-language-java"><code class="gmail-language-java"><span class="gmail-token gmail-class-name">ItemApprovalProcessStateType</span> approvalProcessState <span class="gmail-token gmail-operator">=</span> event<span class="gmail-token gmail-punctuation">.</span><span class="gmail-token gmail-function">getItemApprovalProcessState</span><span class="gmail-token gmail-punctuation">(</span><span class="gmail-token gmail-punctuation">)</span><span class="gmail-token gmail-punctuation">;</span>
listApprovalStages <span class="gmail-token gmail-operator">=</span> approvalProcessState<span class="gmail-token gmail-punctuation">.</span><span class="gmail-token gmail-function">getApprovalSchema</span><span class="gmail-token gmail-punctuation">(</span><span class="gmail-token gmail-punctuation">)</span><span class="gmail-token gmail-punctuation">.</span><span class="gmail-token gmail-function">getStage</span><span class="gmail-token gmail-punctuation">(</span><span class="gmail-token gmail-punctuation">)</span><span class="gmail-token gmail-punctuation">;</span></code></pre>
<p><b>Proposed solution</b></p><code class="gmail-language-java">
</code><pre class="gmail-language-java"><code class="gmail-language-java"><span class="gmail-token gmail-class-name">ApprovalContextType</span> approvalContext<span class="gmail-token gmail-operator">=</span>event<span class="gmail-token gmail-punctuation">.</span><span class="gmail-token gmail-function">getApprovalContext</span><span class="gmail-token gmail-punctuation">(</span><span class="gmail-token gmail-punctuation">)</span><span class="gmail-token gmail-punctuation">;</span>
<span class="gmail-token gmail-class-name">ApprovalContextUtil</span> appConUtil<span class="gmail-token gmail-operator">=</span><span class="gmail-token gmail-keyword">new</span> <span class="gmail-token gmail-class-name">ApprovalContextUtil</span><span class="gmail-token gmail-punctuation">(</span><span class="gmail-token gmail-punctuation">)</span><span class="gmail-token gmail-punctuation">;</span>
listApprovalStages <span class="gmail-token gmail-operator">=</span> appConUtil<span class="gmail-token gmail-punctuation">.</span><span class="gmail-token gmail-function">getApprovalSchema</span><span class="gmail-token gmail-punctuation">(</span>approvalContext<span class="gmail-token gmail-punctuation">)</span><span class="gmail-token gmail-punctuation">.</span><span class="gmail-token gmail-function">getStage</span><span class="gmail-token gmail-punctuation">(</span><span class="gmail-token gmail-punctuation">)</span><span class="gmail-token gmail-punctuation">;</span></code></pre></div><div>Best regards,</div><div>Oleksandr<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 12 May 2020 at 21:13, Pavol Mederly <<a href="mailto:mederly@evolveum.com">mederly@evolveum.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Oleksandr,<br>
<br>
this class is gone, along with many others related to handling Activiti <br>
processes and work items.<br>
<br>
See <a href="https://evolveum.com/workflowless/" rel="noreferrer" target="_blank">https://evolveum.com/workflowless/</a> for an explanation.<br>
<br>
All you need to know about the state of approval process can be found in <br>
the respective CaseType object.<br>
<br>
Best regards,<br>
<br>
Pavol Mederly<br>
Software developer<br>
<a href="http://evolveum.com" rel="noreferrer" target="_blank">evolveum.com</a><br>
<br>
On 12/05/2020 16:42, Oleksandr Nekriach wrote:<br>
> Hi guys,<br>
> Short question.<br>
> Who knows where has the ItemApprovalProcessStateType class been moved or replace by what class in 4.0?<br>
> In 3.9 version this class was in com.evolveum.midpoint.xml.ns._public.common.common_3 package<br>
> <a href="https://evolveum.com/downloads/midpoint/3.9/schema-3.9-schemadoc/http---midpoint-evolveum-com-xml-ns-public-common-common-3/type/ItemApprovalProcessStateType.html" rel="noreferrer" target="_blank">https://evolveum.com/downloads/midpoint/3.9/schema-3.9-schemadoc/http---midpoint-evolveum-com-xml-ns-public-common-common-3/type/ItemApprovalProcessStateType.html</a><br>
><br>
> Compilation error in (new) notification recipient: startup failed:<br>
> (new) notification recipient: 12: unable to resolve class ItemApprovalProcessStateType<br>
><br>
> Best regards,<br>
> Oleksandr<br>
> _______________________________________________<br>
> midPoint mailing list<br>
> <a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
> <a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(76,76,76)">Best regards, <br><br><img src="cid:o.nekriach@dynatech.lv1520941785292-7770"> <br><br>Oleksandr Nekriach | Identity and access management engineer <br><br>Dynatech, <a href="https://www.google.com/maps/place/DYNATECH/@56.9575205,24.1107235,17z/data=!3m1!4b1!4m5!3m4!1s0x46eecf5753e42351:0x23b120b9745cae62!8m2!3d56.9575205!4d24.1129122" target="_blank">Jeruzalemes iela 1, Rīga, LV-1010, Latvia</a><br><br><div style="display:inline-block"><a href="tel:+371%2025%20314%20685" value="+37125314685" target="_blank">+37125314685</a></div>, <div style="display:inline-block"><a href="mailto:o.nekriach@dynatech.lv" target="_blank">o.nekriach@dynatech.lv</a></div> | <div style="display:inline-block"><a href="http://www.dynatech.lv" target="_blank">www.dynatech.lv</a></div> <br><br>Stay connected: <br><div style="display:inline-block;margin:5px 5px 0px 0px"><a href="https://www.facebook.com/DynatechLatvia/?ref=br_rs" target="_blank"><img src="cid:o.nekriach@dynatech.lv1520941785292-7771"></a></div><div style="display:inline-block;margin:5px 0px 0px"><a href="https://www.linkedin.com/company-beta/17893047/" target="_blank"><img src="cid:o.nekriach@dynatech.lv1520941785292-7772"></a></div><br><br><span style="font-size:11px;color:rgb(161,161,161)">Confidentiality
Notice: This message contains confidential information and is intended
only for the named recipient(s). If you are not the addressee you may
not copy, distribute or perform any other activities with this
information. If you have received this transmission in error, please
notify us by e-mail immediately. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses.</span></span></div></div></div></div>