[midPoint] globalPolicyRule RoleType approver notifications
Pavol Mederly
mederly at evolveum.com
Fri Apr 8 14:49:13 CEST 2022
Excuse me, I have probably confused your first and last name. :(
Having looked at the source code I got a feeling that the allocation
event may be (by mistake) not sent even after work item is claimed...
If you have a little time, you may look at the source code e.g. here
https://github.com/Evolveum/midpoint/blob/bc09c7d92d03d93f5686aa3d9e301eb1c1a115f1/model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/actions/OpenStageAction.java#L114-L147
These are notifications sent when the stage is opened, i.e. at the
moment when work items are created.
--
Pavol Mederly
Software developer
evolveum.com
On 08/04/2022 14:43, Pavol Mederly via midPoint wrote:
>
> Alonso,
>
> it's most probably normal behavior:
>
> There are no "work item allocated" events, because no allocation took
> place - yet.
>
> Regards,
>
> --
> Pavol Mederly
> Software developer
> evolveum.com
> On 08/04/2022 14:21, Ezequiel Alonso via midPoint wrote:
>> Hi guys,
>>
>> We have tried a globalPolicyRule with an approval step containing an
>> approver of type RoleType, and the default simpleWorkflowNotifier:
>>
>> <stage>
>> <number>1</number>
>> <name>Approval step 1</name>
>> <approverRef relation="org:default" type="c:RoleType">
>> <filter>
>> <q:equal>
>> <q:path>name</q:path>
>> <q:value>Approvers</q:value>
>> </q:equal>
>> </filter>
>> <resolutionTime>run</resolutionTime>
>> </approverRef>
>> <evaluationStrategy>allMustApprove</evaluationStrategy>
>> <outcomeIfNoApprovers>reject</outcomeIfNoApprovers>
>> <groupExpansion>byClaimingWorkItem</groupExpansion>
>> </stage>
>>
>> <notificationConfiguration>
>> <handler>
>> <simpleWorkflowNotifier>
>> <transport>mail</transport>
>> </simpleWorkflowNotifier>
>> </handler>
>> ...
>> </notificationConfiguration>
>>
>> When we trigger the approval step, notifications are sent only for
>> workflow process events (workflow started/ended), but not for
>> workitem allocation events (e.g.: workitem created/work item
>> allocated to you). Is this the normal behavior or? Or the
>> members/role emailAddress should be notified?
>>
>> If we use a UserType approver, notifications are sent successfully on
>> workflow process events and on workitem allocation events. Both
>> UserType and RoleType objects have a valid emailAddress.
>>
>> Thank you in advance.
>>
>> --
>> *Ezequiel Alonso*
>> Identicum S.A.
>> Costa Rica 5546, Buenos Aires, Argentina
>> <https://goo.gl/maps/CD9awkNypjqr7iCt5>
>> www.identicum.com <https://www.identicum.com/>
>>
>> _______________________________________________
>> midPoint mailing list
>> midPoint at lists.evolveum.com
>> https://lists.evolveum.com/mailman/listinfo/midpoint
>
> _______________________________________________
> 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/20220408/1b8cd322/attachment.htm>
More information about the midPoint
mailing list