[midPoint] errorHandling controlFlow for tasks

Paul Engle pengle at rice.edu
Wed Jan 11 22:51:18 CET 2023


I don't know if it's required or what happens by default if it's left out,
but you might need a <situation> element in there:
<entry>
    <situation>
        <status>fatal_error</status>
    </situation>
...
</entry>

At least, that's what I have on one of my 4.4 server tasks, and it seems to
perform as expected.
Disclaimer: I just started playing with the new activity-based error
handling yesterday, so I'm far from an expert.

-- 
Paul Engle
IAM Architect
Identity & Access Management
pengle at rice.edu 713-348-4702


On Wed, Jan 11, 2023 at 11:07 AM Yakov Revyakin via midPoint <
midpoint at lists.evolveum.com> wrote:

> Hi all,
> It is not clear how to configure retry for a task.
> I have a task which got fatal_error because of an incorrect accessKey for
> an external resource. The task is suspended after the error.
> I'd like to have another behavior - task must retry attempt to execute
> after a minute.
> I configured errorHandling in the activity section but still have the same
> result - the task is suspended after an error and there is any retry.
> What's wrong?
>
>     <activity>
>     .......
>         <controlFlow>
>             <errorHandling>
>                 <entry>
>                     <reaction>
>                         <retryLater>
>                             <initialInterval>PT1M</initialInterval>
>                             <nextInterval>PT3M</nextInterval>
>                             <retryLimit>3</retryLimit>
>                         </retryLater>
>                     </reaction>
>                 </entry>
>            </errorHandling>
>         </controlFlow>
>     </activity>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20230111/ad762236/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5338 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20230111/ad762236/attachment.bin>


More information about the midPoint mailing list