Show TOC Start of Content Area

Function documentation Modification of Event Properties  Locate the document in its SAP Library structure

Use

This function describes how to modify an event created by BusinessEventTealeafCapturer, before it gets published to the TeaLeaf server. For every business event there is a method defined in BusinessEventTealeafCapturer, which gets called when the application raises the event. This method calls another method prefixed with set to set the properties inside the raised event. You can extend the set method to add new properties, edit or delete existing properties. Please refer to the javadoc, to find which methods can be extended and what properties are set inside the event.

Note

The name BusinessEventTealeafCapturer, is a misnomer. This class is can be used for Web Event Capture with both DB Capturer and TeaLeaf.

Activities

To customize the information captured when a B2C user register event is raised, you need to look up javadoc to see the set method used in captureRegisterEvent.  setCustomer method is used by captureRegisterEvent method, so you go about extending it. You can:

·        Modify the existing property CustomerID

·        Add a new property DATE

·        Delete an existing property Description using the code given below

Syntax

public class ZCapturer extends BusinessEventTealeafCapturer{

  .

  .

  protected void setCustomer(CapturerEvent  event,

           User user,

           Address address, 

           BusinessObjectManager bom) {

    

     event.setProperty("Customer", "CustomerID", customizeUserDetermination( user)); //modifying existing property

     event.setProperty("Customer", "DATE", "08-27-2003" );

     //create new property called DATE

     event.removeProperty("Customer", "Description");//remove existing property called Description

  }

    .

  .

}

 

See also:

Creation of an Event

 

 

 

End of Content Area