[midPoint] AutomaticallyCompleted condition on role assignment

Arnošt Starosta - AMI Praha a.s. arnost.starosta at ami.cz
Tue Feb 5 10:23:38 CET 2019


Hi Nicolas,

i use SchemaConstants.MODEL_APPROVAL_OUTCOME_* as return values, maybe your
'approve' string is not exactly the same thing?

The debug message is logged?

And is it really induced to the user object? I don't see any focusType
and/or orderConstraint in your inducement.

arnost


po 4. 2. 2019 v 23:10 odesílatel Nicolas Rossi <nrossi at identicum.com>
napsal:

> Hi guys,
>
> I was trying to bypass an approval step using the automaticallyComplete
> configuration on an approval-metarole. I can't get it to work. It is
> ignored even when it returns always "approve". Sample here
> <https://github.com/Evolveum/midpoint/blob/1c1975fa450bbee741314c2822c5715ebf68f6b2/model/workflow-impl/src/test/resources/policy/assignments/role-role25-very-complex-approval.xml>
> .
>
> Here is my metarole code:
>
> <role>
>
> <name>Sample Approval</name>
>
> <inducement id="1">
>
> <policyRule>
>
> <policyConstraints>
>
> <assignment id="2">
>
> <operation>add</operation>
>
> </assignment>
>
> </policyConstraints>
>
> <policyActions>
>
> <approval id="3">
>
> <compositionStrategy>
>
> <order>10</order>
>
> </compositionStrategy>
>
> <approvalSchema>
>
> <stage>
>
> <approverRef oid="53579500-962e-4b81-a946-7099bb077b8b" type="UserType" />
>
> <automaticallyCompleted>
>
> <script>
>
> <code>
>
> log.debug("AutomaticallyCompleted condition");
>
> return 'approve';
>
> </code>
>
> </script>
>
> </automaticallyCompleted>
>
> </stage>
>
> </approvalSchema>
>
> </approval>
>
> </policyActions>
>
> </policyRule>
>
> </inducement>
>
> <roleType>policy</roleType>
>
> </role>
>
> When I assign a role containing the metarole, the selected approver
> receives the work item, so the metarole is working but the
> automaticallyCompleted configuration is being ignored.
>
> Any thoughts ?
>
>
> Ing Nicolás Rossi
> Identicum S.A.
> Jorge Newbery 3226
> Oficina: +54 (11) 4552-3050
> Móvil: +54 (911) 6041-3920
> www.identicum.com
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>


-- 

*Arnošt Starosta*
solution architect

gsm: [+420] 603 794 932
e‑mail: arnost.starosta at ami.cz

*AMI Praha a.s.*
Pláničkova 11, 162 00 Praha 6

tel.: [+420] 274 783 239 | web: www.ami.cz

[image: AMI Praha a.s.]

Textem tohoto e‑mailu podepisující neslibuje uzavřít ani neuzavírá
za společnost AMI Praha a.s.
jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně
písemnou formu.

Tento e‑mail je určen výhradně pro potřeby jeho adresáta/ů a může obsahovat
důvěrné nebo osobní
informace. Nejste‑li zamýšleným příjemcem, je zakázáno jakékoliv
zveřejňování, zprostředkování
nebo jiné použití těchto informací. Pokud jste obdrželi e‑mail neoprávněně,
informujte o tom prosím
odesílatele a vymažte neprodleně všechny kopie tohoto e‑mailu včetně
všech jeho příloh. Nakládáním
s neoprávněně získanými informacemi se vystavujete riziku právního postihu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20190205/deb76b75/attachment.htm>


More information about the midPoint mailing list