PostProcess method: PTRTI class

Syntax

PostProcess(&triggerrec, &searchdefn, &keys, &keyvalueset)

Description

Use this method to perform post processing activities of a search definition for real-time indexing.

This method is not applicable for Activity Guide type search definitions.

Parameters

Parameter Description

&triggerrec

Specifies the name of the trigger record as a String.

&searchdefn

Specifies the name of the search definition as a String.

&keys

Specifies the key names as in a staging row as an array of String.

&keyvalueset

Specifies the key values of the keys as in a staging row as an array of array of String.

Returns

A number; 0 indicates success and 1 indicates failure.

Note:

However, the real time indexing process does not use the return value of the PostProcess method for any processing.

Example

import PTRTIPKG:PTRTI;

class RTI extends PTRTIPKG:PTRTI
   method PostProcess(&triggerrec As string, &searchdefn As string, &keys As array of string, &keyvalueset As array of array of string) Returns number;
end-class;

method PostProcess
   /+ &triggerrec as String, +/
   /+ &searchdefn as String, +/
   /+ &keys as Array of String, +/
   /+ &keyvalueset as Array2 of String +/
   /+ Returns Number +/
   /+ Extends/implements PTRTIPKG:PTRTI.PostProcess +/
   Local number &aresult;
   &aresult = 0;
   /* Perform some processing */
   Return &aresult;
end-method;