WillDirectorCallApplication

Determine If Director Will Call Application

Minor Business Rule

Object Name: N0800371

Parent DLL: CHRM

Location: Client/Server

Language: NER

Business Function Specification
1.Functional Description


1.1Purpose

This function will updated the self-service script cache record for P085560, P085563, P085570 to indicate to the director application of they should be 

called within the script.  Data to be displayed on these forms will be verified so that the form is not displayed if it is not necessary or not allowed.


1.2Setup Notes and Prerequisites


1.3Special Logic


2.Technical Specifications


2.1Parameters: N0800371

Data Item Data Structure DescriptionI/ORequiredNotes JOBSmnJobnumberAIYesJob number of the B0800546 cache in ESS - holds all cache 

names COszCompanyIYesEmployees Company CTRszCountryIYesEmployees employment country AN8mnAddressNumberIYesEmployees Address 

number EECDszEnrollmentEventCodeIYesFrom self service script EVETmnEnrollmentEventTypeIYesFrom self service script OBNMszNameObjectIYesNo Longer 

Used FMNMszFormNameIYesNo Longer Used VERSszVersionIYesNo Longer Used EV01cCallApplicationFlagONoNo Longer Used

2.2Related Tables 

Table Table Description

2.3Related Business Functions

Source NameFunction Name B0000045Convert Math Numeric to String B0500546Cache Job Number By BSFN 

Name B0500561Cache ESS Common Data B0800283Self-Service Process Script Cache B0800285Available Plans Enrollment Cache N0800341Determine 

Active Enrollment Event Enhanced B0800372Get P085563 Processing Options

2.4Processing 


'b7Get the Event Date from the Event Date Cache
'b7Get Job Number for Self - Service Cache
'b7Get script records for P085560, P085563, P085570 only to determine if

'b7need to be called 

'b7If none of these applications are in the script quit now

'b7StopLoopFlag  =1


'b7While StopLoopFlag is not equal to 1
oDefault -  CALL  the application
oCallApplicationFlag =1
oNameObject ="P085560"


oIf B0800285Jobnumber is equal to Zero
'a7Get the Job Number for B0800285
'a7If the B0800285 has not been loaded, do it now.

oIf NameObject is equal to "P085568" 
'a7// Confirmation/Current Statement - - For Implementation Later (B9)
'a7FunctionDone =1

oBegin Application Specific Logic

oIf FunctionDone  is not equal to "1" 

'a7 Health and Welfare Enrollment or Number of Dependents 
'a7 Both reqire plans that have dependents (type 1)
'a7 so do not show if there are no available type 1 plans

'a7                        or

'a7 all type 1 plans are not active

'a7 If any type 1 plans are found and active application will be called 

'a7If BF szNameObject is equal to "P085570" Or BF szNameObject is equal to "P085560" 

'b7 Loop through the B0800285 cache to see if there are any plans with a BCATCL
'b7 flag of 1.  If the BCATCL flag is 1, call the P085570 or P085560.  If there
'b7 are no plans with flag 1, don't call P085570 or P085560. Use index 5, 2 keys.

'b7 Also check the active flag - if plan of type 1 is not active don't call

'b7If ActiveFlag is equal to "1" 

o Found a type 1 plan that is active so set flag to call application
'a7If BF szNameObject is equal to "P085563" 
'b7 Get the category classification from the processing option of this version
'b7 Found current version
'b7 Variable that counts the records that will show when the application loads. 

'b7 Once, this counter hits 1, then the application can be called.

'b7ValidRecordCount = 0

'b7 Look for a record in B0800285 that will show if this application is called.

'b7 If the PO is blank, then get records with a benefit category other than 1

'b7 Since cache cannot do a not equal to fetch, just get all the records and

'b7perform an 'if' statement later to not count the records with class = 1

'b7 If the PO has a value, only get the records for that category

'b7 Category records can be shown if the following conditions are true

'b7 1.  This category is not a repeat of one that has already been found

'b7 2.  This is not a health & welfare classification, those are handled in

'b7 another application.

'b7 3.  The category is 'Active', meaning it is available to the employee for

'b7 changes

'b7 4.  The category type is not 1 or 2.  These are special categories meant for

'b7 behind the sceens processing of flex benefit groups.

'b7This category only allows changes to the beneficiary designations of existing

'b7 enrollment/ 

'b7If VA AllowBenChangeOnly is equal to "1" 

o Only show this category if the employee is enrolled in a beneficiary plan
 
'b7If This is a category record that would show on the application
oValidRecordCount_MATH01 =ValidRecordCount+1
'b7 If there are no records that would show on this application, then don't call
'b7 the applciation.

'b7If ValidRecordCount_MATH01 is equal to  
o cCallApplicationFlag = "0"
'b7If enabled and call flag is 0 - change enabled to 2 for all calls to this appl in the script cache
'b7 If enabled is 2 and call flag is 1 - change enabled to 1 for all calls to this
'b7 app lin the script cache


Loop Processing
'a7If NameObject is equal to "P085560" 
'a7NameObject = "P085563"
'a7Fetch Self Service Script Cache

'a7If dont find record for 63change to 70

'b7NameObject = "P085570"
'b7Self Service Script Cache
'a7If dont find record for 70 done
'a7 If none of these applications are in the script quit now
'b7StopLoopFlag = 1
'a7
'a7If NameObject is equal to "P085563" 
'b7NameObject = "P085570"
'b7Self Service Script Cache

Data Structure

D0800371 - Determine If Director Will Call Application

Parameter NameData ItemData TypeReq/OptI/O/Both
mnJobnumberAJOBSMATH_NUMERICOPTINPUT

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

szCompanyCOcharOPTINPUT

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

szCountryCTRcharOPTINPUT

A user defined code (00/CN) that identifies a country. The country code has no effect on currency conversion. The Address Book system 
uses the country code for data selection and address formatting.

mnAddressNumberAN8MATH_NUMERICOPTINPUT

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

szEnrollmentEventCodeEECDcharOPTINPUT

The user defined code (08/BE) that you use to denote an enrollment event such as marriage.

mnEnrollmentEventTypeEVETMATH_NUMERICOPTINPUT

A field that indicates the event during which the enrollment occurs. Valid values include:    1   Open Enrollment    2   Enrollment for current plan 
year

szNameObjectOBNMcharOPTINPUT

The name that identifies a system object. J.D. Edwards ERP architecture is object-based. Discrete software objects are the building blocks 
for all applications, and developers can reuse the objects in multiple applications. The Object Librarian tracks each object. Examples of 
system objects include:   o Batch Applications (such as reports)   o Interactive Applications   o Business Views   o Business Functions   o 
Business Functions Data Structures   o Event Rules   o Media Object Data Structures

szFormNameFMNMcharOPTINPUT

The unique name that identifies a form.

szVersionVERScharOPTINPUT

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

cCallApplicationFlagEV01charOPTOUTPUT

An option that specifies the type of processing for an event.

Related Functions

None

Related Tables

None