PlanStatusCache

Plan Status Cache

Minor Business Rule

Object Name: B0800031

Parent DLL: CHRM

Location: Client/Server

Language: C

Functional Description

Purpose

  The business function keeps in cache, the plan or plan option an employee is currently enrolled in, 
together with active status flag of the enrollment.


Setup Notes and Prerequisites

  Cache records can be read, written, updated or deleted, depending on the value being passed in for 

the CacheActionFlag.  The possible values for the CacheActionFlag  

are 1=Cache Get

    2=Cache Add

    3=Cache Update

    4=Cache Delete

    5=Cache Delete All

    6=Cache Get Next

    7=Cache Add Update (Do not use)

    8=Cache End

    9=Cache Close Cursor.


The keys to the cache record are the cache job number (must already be assigned using X0010) and Plan 

ID.

 

Special Logic




Technical Specification

There are 9 internal functions:
1.  Call I0800031_CacheGet if CacheActionFlag = 1

2.  Call I0800031_CacheAdd if CacheActionFlag = 2

3.  Call I0800031_CacheUpdate if CacheActionFlag = 3

4.  Call I0800031_CacheDelete if CacheActionFlag =4

5.  Call I0800031_CacheDeleteAll if CacheActionFlag = 5

6.  Call I0800031_CacheGetNext if CacheActionFlag = 6

7.  Call I0800031_CacheAddUpdate if CacheActionFlag = 7

8.  Call jdeCacheTerminateAll if CacheActionFlag = 8

9.  Call I0800031_CloseCursor if CacheActionFlag = 9

10. Error if the CacheActionFlag is not between 1 and 9.


  




Data Structure

D0800031 - Plan Status Cache

Parameter NameData ItemData TypeReq/OptI/O/Both
szCacheActionCodeCACTNcharNONENONE

1 =Cache  Getab  ab   
2 =Cache  Addab  ab 

3 =Cache  Updateab  ab 

4 =Cache  Deleteab  ab 

5 =Cache Delete  Allab 

6 =Cache Get  Nextab  ab 

7 =Cache  Add/Updateab 

8 =Cache  Endab  ab 

9 =Cache Close  Cursorab  ab 

^

mnNumberKeysNKEYSMATH_NUMERICNONENONE

The number of keys in an index that will be used to retrieve, delete, or update a record.

cSuppressErrorMessageSUPPScharNONENONE

A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.        0 = allow 
runtime error message handling.        1 = suppress runtime error message handling.

szErrorMessageIDDTAIcharNONENONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

idCacheCursorGENLNGIDNONENONE

General purpose ID variable.

mnJobnumberAJOBSMATH_NUMERICNONENONE

The job number (work station ID) which executed the particular job.

szPlanIdPLANcharNONENONE

An abbreviation or number that identifies a specific employee benefit. Examples are:   o  Employee Health Insurance   o  Accidental Death 
and Dismemberment   o  Health Club Expense Reimbursement   o  Employee Stock Appreciation Rights  A benefit plan typically is associated 
with a deduction, benefit, or accrual. For example, a medical plan is a benefit that might also require a deduction to withhold premiums from 
an employee's pay.

cPlanStatusCodeVC01AcharNONENONE

This is a generic field used for video constants display.

Related Functions

None

Related Tables

None