In addition to the static synchronization actions described in the
previous section, you can provide a script that is run in specific
synchronization situations. The following extract of a sample
sync.json file specifies that when a synchronization
operation assesses an entry as ABSENT, the workflow
named managedUserApproval is invoked. The parameters
for the workflow are passed in as properties of the action
parameter.
{
"situation" : "ABSENT",
"action" : {
"workflowName" : "managedUserApproval",
"type" : "text/javascript",
"file" : "bin/defaults/script/workflow/workflow.js"
}
}
The variables available to these scripts are described in Variables Available in Scripts in the Scripting Appendix.

