This example shows how the adapter’s publication and request-response services can be used in conjunction with a TIBCO BusinessWorks process. The example has four operations get
, insert-update
, delete
, and sync
.
get
operation uses the adapter’s request-response service to fetch data from the COM server that you specify in an input HTML file.The get operation queries the COM server based on the given ID and fetches the data. The data is sent back by the adapter to TIBCO BusinessWorks and is written into an output file and displayed on the HTML page.
insert-update
operation uses the adapter’s request-response service to update the COM Server.
The insert-update
operation queries the COM server based on the given ID. If the record exists, the data in the record is updated. Information that the record has been updated is sent back by the adapter to TIBCO BusinessWorks and displayed on the HTML page. If the record does not exist, it is inserted and the information that the record has been inserted is sent back by the adapter to TIBCO BusinessWorks and displayed on the HTML page.
delete
operation uses the adapter’s request-response service to delete data that you specify in an input HTML file.
The delete
operation queries the COM server based on the given ID and then deletes the data. Information that the record has been deleted is sent back by the adapter to TIBCO BusinessWorks and is displayed on the HTML page.
sync
operation uses the adapter’s publication service to send a message from the COM Server whenever details in a business object record are modified or updated. Any change to the data in the COM server triggers the sync
operation.
On receiving the modified data, TIBCO BusinessWorks logs it to a <business_process>sync.txt
file that is saved in the %FileLocation%/sync
folder, where %FileLocation%
is the global variable.
TIBCO Adapter™ for COM Examples Guide Software Release 5.3, September 2005 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |