The Record_Listener process shows you how to listen to the Create, Edit, and Delete user events triggered on the Event record and then publish an XML message encapsulating the data of the record on which the event was triggered.
Procedure
-
Expand the NetSuiteSample project in the Project Explorer view.
-
Configure the HTTP Connector shared resource.
- Expand the
NetSuiteSample node and click
.
- Double-click
HTTPConnectorResource.httpConnResource.
- Specify the
Host and
Port fields in the
Basic Configuration tab.
Note: Make sure the values of the <httpServer> and <httpPort> elements in the
RecordListenerHTTPConfig.xml file, which you uploaded to the NetSuite website, are consistent with the values specified in the
Host and
Port fields respectively.
-
Expand
.
-
Double-click
Record_Listener.bwp.
-
Right-click the Record Listener activity in Process Editor and select
Show Properties View from the menu that is displayed.
-
Configure the Record Listener activity.
Note: Make sure the values of the <httpPath>, <listenerUsername>, and <listenerPassword> elements in the
RecordListenerHTTPConfig.xml file, which you uploaded to the NetSuite website, are consistent with the values specified in the
Relative Path,
Username, and
Password fields respectively.
-
Right-click
Record_Listener.bwp in the Project Explorer view and click
from the menu that is displayed.
-
Deploy the Event record in the script that you created in the NetSuite system and then add, update, or delete the Event record in the NetSuite system.
See "Running Scripts in NetSuite" in
TIBCO ActiveMatrix BusinessWorks Plug-in for NetSuite Installation for how to create a script in the NetSuite system.
-
Click the Terminate
icon to stop the process.
Result
The Record_Listener process listens to the user events triggered on the Event record, and you can see the operation you did in the
eventType element in the
Output tab of the Record Listener activity.
Copyright © Cloud Software Group, Inc. All rights reserved.