The TopicSubscriberSample project gives you a quick overview of how to use the Salesforce Subscriber activity of the TIBCO ActiveMatrix BusinessWorks™ Plug-in for Salesforce.com.
Procedure
Start TIBCO Business Studio.
Click
File > Import.
In the
Import window, expand the
General folder and select the
Existing Studio Projects into Workspace item. Click
Next.
Click
Browse next to the
Select archive file field to locate the samples. Click
Finish.
The sample project is located in the
TIBCO_HOME\bw\palettes\salesforce\version_number\samples\TopicSubscriberSample directory.
Change the values in the
User Name and
Password fields in the
Connection Configuration panel of the Salesforce Connection shared resource.
In this project, three processes are created under two packages,
initpushtopic and
topicsubscribersample. Configure these processes as explained below:
CreatePushTopic Process
This process creates a push topic on the Salesforce server with the name provided.
AccountUpdates Process
This process creates a record, updates it, and then deletes the record in the end.
SubscribeToAccountUpdates Process
In this process, provide the same topic name that was created in CreatePushTopic process. It subscribes to the topic name and generates a process event for each message received from AccountUpdates process. It starts receiving messages for all updates to the object in the last 24 hours.
Test and run the processes in the project, in the order they have been listed earlier.