This example is a basic demonstration of the Transaction Service.
One object is defined on this page as an instance of CTemp, and a second object is defined as in instance of org.cote.js.template, which is built into Engine.
The Template object is transaction ready, but includes a break point to prevent it from successfully processing the transaction packet until the continueTransaction method is invoked.
When this page loaded, both objects were registered with the transaction service.
Click Open Transaction to create a new transaction.
Click Send Serve Command to invoke the serveTransaction method on the Transaction Service for the newly created packet. Note that clicking 'Serve' will not do much because the transaction is waiting on the Template instance to successfully complete the transaction.
Click Update Object to invoke the continueTransaction method on the Template instance, which instructs that object to complete the transaction.
Click Send Serve Command again. The transaction should be complete because clicking Update Object freed up Template from not successfully handling the transaction.