[midPoint] ProvisionScript not running scriptedSQL Connector
Pascal PERICHON
pascal.perichon at u-paris.fr
Thu Dec 1 14:26:19 CET 2022
Hi,
namespace of your extension with "givenNameOfficially" is probably
unknown. You should specify it in your xml or access it by program.
Could you try that :
givenNameOfficially = basic.getExtensionPropertyValue(user,
'http://the/namespace/of/the/extension/schema',
'givenNameOfficially')
if the var "user" is not present, you should catch it by var "focus" or
something like that. Check what var are available in your context with
the groovy command:
this.binding.variables.each {k,v -> log.info("-------> {} =
{}", k, v)}
Best regards
Le 01/12/2022 à 11:36, Patrik Sidler via midPoint a écrit :
>
> Hi All,
>
> We are having an issue at one of our customers.
>
> The following ProvisionScript is configured in our ScriptedSQL Connector:
>
> <scripts>
>
> <script>
>
> <host>connector</host>
>
> <language>groovy</language>
>
> <argument>
>
> <name>givenNameOfficially</name>
>
> <path>$focus/extension/givenNameOfficially</path>
>
> </argument>
>
> <code>
>
> log.error("TRIGGER RECONCILE " + givenNameOfficially)
>
> </code>
>
> <operation>reconcile</operation>
>
> <kind>account</kind>
>
> <intent>default</intent>
>
> <order>before</order>
>
> </script>
>
> </scripts>
>
> Whenever we reconcile n account on this resource, we get the following
> error:
>
> 2022-11-24 15:22:01,066 [] [pool-3-thread-169] ERROR
> (com.evolveum.midpoint.gui.impl.page.admin.ProgressAwareChangesExecutorImpl):
> Error executing changes.
> com.evolveum.midpoint.util.exception.SystemException: Generic
> provisioning framework error: groovy.lang.MissingPropertyException(No
> such property: givenNameOfficially for class: Script1)
>
> Has anyone an idea what is wrong here?
>
> Thank you in advance for your help.
>
> Best Regards
>
> Patrik Sidler
>
>
> _______________________________________________
> 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/20221201/06aaf68d/attachment.htm>
More information about the midPoint
mailing list