Try OpenEdge Now
skip to main content
BPM Events User's Guide
Persistent structures : Infopads : Defining Infopads, cells, and slots
 

Defining Infopads, cells, and slots

An infopad is a table of one or two dimensions, which is composed of elements called cells. A cell is a data-structure made up of slots, or attributes. A slot is an atomic value of the following types:
*String of characters (string)
*Integer (int)
*Real number (float).
All the cells of an infopad have the same structure (that is, slot names and types). The following code example represents the cell structure used in monitoring the response time of requests:
avg_resp_time:float,
max_time:int,
current_user:string
The previously mentioned cell has the following three declared slots, and one undeclared slot:
*avg_resp_time, a number of type real, records the average response time of all requests monitored to date (the time unit depends on the application and is matter of interpretation: it could be seconds, minutes, hours, etcetera).
*max_time, a number of type integer, records the maximum response time recorded to date.
*current_user, a string of characters, records the user ID of the last monitored request.
*count, a number of type integer , is an undeclared slot, that is always present by default in any cell declaration.
This cell definition is used to describe the elements of an infopad. For example, myMonthlyTable[31][4] has 31 rows and 4 columns, for a total of 124 elements. Each of these columns are named after a request name, so this table monitors 4 different types of requests. Each row records the monitoring of each day of the month, for each request type.