An event object represents the synchronization event that triggered the workflow script.
Remarks
The event object is available only in scripts that are triggered by a synchronization event
(set up using the for endsynceventtab-name
trigger declaration). You can access the fields of the triggering event in a script using
dot notation as the
event field of the endsync variable. The name, number, and type of the fields in an event
object is determined by their events table schema.
Using the following ping events table
schema,
the
pingPopulator workflow script creates three new events with fixed
string type
values.
The
pingListener workflow script is triggered on the server when the mobile
client of the user designated in the event schema sends the server acknowledgement that it has
downloaded the changes to the pingeventtab from the
server.
Because
the pingPopulator script created three events, the
pingListener script will be triggered three times, with the following console
output.
"Athos"
"Porthos"
"Aramis"
