Keep the following points in mind:
Usually, if you have not defined a script for a given event, the default action is to do nothing.
The begin_connection and end_connection events are connection-level events. They are independent of any single synchronization and have no parameters.
Some events are invoked once per synchronization for each table being synchronized. Scripts associated with these events are called table-level scripts.
While each table can have its own table scripts, you can also write table-level scripts that are shared by several tables.
Some events, such as begin_synchronization, occur at both the connection level and the table level. You can supply both connection and table scripts for these events.
The COMMIT statements illustrate how the synchronization process is broken up into distinct transactions.