Hi Manfredo,

Il 11/03/2015 21:45, Manfredo Hopp ha scritto:
Hello, from docs:

Implementation of custom Groovy SQL scripts

Every action script receives a set of parameters and an attribute map. The set of parameters varies for each action.

  * CreateScript.groovy
    
<https://cwiki.apache.org/confluence/download/attachments/30754125/CreateScript.groovy?version=1&modificationDate=1361178783000&api=v2>

CreateScript run if the SearchScript doesn't find the object on the resource.

  * UpdateScript.groovy
    
<https://cwiki.apache.org/confluence/download/attachments/30754125/UpdateScript.groovy?version=1&modificationDate=1361178815000&api=v2>

UpdateScript run if the SearchScript find the object on the resource.

  * DeleteScript.groovy
    
<https://cwiki.apache.org/confluence/download/attachments/30754125/DeleteScript.groovy?version=1&modificationDate=1361178836000&api=v2>

Delete an object.

  * SearchScript.groovy
    
<https://cwiki.apache.org/confluence/download/attachments/30754125/SearchScript.groovy?version=1&modificationDate=1361178856000&api=v2>

SearchScript run before and after all privisioning operation, search operation and full reconciliation.

  * SyncScript.groovy
    
<https://cwiki.apache.org/confluence/download/attachments/30754125/SyncScript.groovy?version=1&modificationDate=1361178914000&api=v2>

SyncScript take only the changes on the resource (incremental synchronization)

 *



Question: When and how does each script run (i.e update script).


When using scripted resource for an update Task, only search script is activated.
I suggest you to check in the Connector configuration if the update capability is enabled (ONE_PHASE_UPDATE) and if your updateScripthas no errors (core-connid.log). In addition, in the resource configuration tab check the propagation mode (set ONE_PHASE).

Moreover, the update takes place only if there are changes on the attributes present in the mapping of the resource.

Regards
M

Syncope version 1.2.2 sricptedSQL version 2.1.1

Regards












--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net

Apache Syncope PMC Member
http://people.apache.org/~mdisabatino/

Reply via email to