GlobalEventMapping Class Methods

In this section, the GlobalEventMapping class methods are presented in alphabetical order.

Syntax

CreateGlobalEventMappingConfig(config_name, service_ID)

Description

Use this method to create a global event mapping configuration.

Before you call the CreateGlobalEventMappingConfig method, you should ensure that the related content service definition is created. For information on creating a related content service definition, see Creating Service Definitions for Event Mapping.

Parameters

Parameter

Description

config_name

Specify a unique name to identify the event.

The configuration name can contain a maximum of 12 characters. If you enter more than 12 characters, only the first 12 characters are retained. The configuration name is prefixed with PTCS_EVMAP_GBL_.

For example, if you enter CHATBOT as the configuration name, the configuration is saved as PTCS_EVMAP_GBL_CHATBOT in the database.

service_ID

Specify the service ID of the related content service definition.

Returns

A boolean value. True if the configuration is created successfully; false otherwise.

Example

import PTCS_GLOBALEVENTMAPPING:*;

Local PTCS_GLOBALEVENTMAPPING:GlobalEventMapping &gloablObj = create PTCS_GLOBALEVENTMAPPING:GlobalEventMapping();

/*CreateGlobalEventMappingConfig (<<CONFIG NAME>>,<<SERVICE_ID>>*/

Local boolean &bstatus = &gloablObj.CreateGlobalEventMappingConfig("CHATBOT", "SERVICEID_1");

Syntax

DeleteGlobalEventMappingConfig(config_name)

Description

Use this method to delete a global event mapping configuration.

Parameters

Parameter

Description

config_name

Specify the global event mapping configuration to be deleted.

Returns

A boolean value. True if the global event mapping configuration is deleted; false otherwise.

Example

import PTCS_GLOBALEVENTMAPPING:*;

Local PTCS_GLOBALEVENTMAPPING:GlobalEventMapping &globalObj = create PTCS_GLOBALEVENTMAPPING:GlobalEventMapping();

/*DeleteGlobalEventMappingConfig (<<CONFIG NAME>>*/

Local boolean &bdel = &globalObj.DeleteGlobalEventMappingConfig("CHATBOT");