Hi Don,
Your assumption is correct - the Interactions collection will be populated based on server events.
To understand how best to get working with interactions, have a look at the sample applications, or here:
http://www.devconnectprogram.com/site/global/products_resources/avaya_client_sdk/programming_docs/current/javascript/customer_interactive/tech/the_work_api.gsp
To be notified when an interaction has been added to the collection:
//these events are attached to the Work object
work.addOnInteractionCreatedCallback(callback);
work.addOnInteractionDeletedCallback(callback);
and to add specific callbacks to an interaction object, example:
//this event is attached to the interaction object itself
interaction.addOnInteractionUpdatedCallback(callback)
Or, you could use a data-binding approach - as shown in one of the sample applications.
Both sample application show how to work with interactions, and carry out actions on an individual interaction - such as 'accept', 'end' etc.
It's also worth gaining an understanding of 'capabilities' at this point:
http://www.devconnectprogram.com/site/global/products_resources/avaya_client_sdk/programming_docs/current/javascript/customer_interactive/guide/tutorial_capabilities.gsp
as these are also set by the server - they will give an indication on whether a requested action will be successful (i.e. on an interaction object there are a list of 'capabilities', if the 'canAccept' capability is false, then 'interaction.accept()' will likely fail)
thanks
CIS Package Support