The postEvent method enables you to execute any event defined in the interactive channel.
sessionID—a string identifying the session id.
eventName—a string identifying the name of the event.
eventParameters—NameValuePairImpl objects identifying any parameters that need to be passed with the event. These values are stored in the session data.If this event triggers re-segmentation, you must ensure that all data required by the interactive flowcharts is available in the session data. If any of these values have not been populated by prior actions (for example, from startSession or setAudience, or loading the profile table) you must include an eventParameter for every missing value. For example, if you have configured all profile tables to load into memory, you must include a NameValuePair for temporal data required for the interactive flowcharts.
There are several other reserved parameters used with postEvent and other methods and are discussed later in this section.Unless specified with the UACIExecuteFlowchartByName parameter, re-segmentation runs all interactive flowcharts associated with this interactive channel for the current audience level. The getOffers method waits for re-segmentation to finish before running. Therefore, if you call a postEvent method which triggers a re-segmentation immediately before a getOffers call, there may be a delay.
The runtime server responds to postEvent with a Response object with the following attributes populated:
The following postEvent example shows sending new parameters for an event which triggers re-segmentation, and a way to handle the response.
sessionId is the same string to identify the session used by the startSession call which started this session.
IBM Unica Interact
8.5.0
|
Copyright IBM Corporation 2011. All Rights Reserved.
|
For more information, see our support and community site: Customer Central
|
|