Routines for resc_ww.kb


R_AddRule

File Name

resc_ww.kb

Syntax

R_AddRule IS

Parameters

None

Returns

Nothing

Side Effects

None

Description

This routine adds a TCM escalation rule.

Dialog Forms Called

None


R_DeleteRule

File Name

resc_ww.kb

Syntax

R_DeleteRule IS

Parameters

None

Returns

Nothing

Side Effects

None

Description

This routine deletes a TCM escalation rule.

Dialog Forms Called

None


R_EditRule

File Name

resc_ww.kb

Syntax

R_EditRule IS

Parameters

None

Returns

Nothing

Side Effects

None

Description

This routine edits a TCM escalation rule.

Dialog Forms Called

None


R_Escal_RuleAEVEvent

File Name

resc_ww.kb

Syntax

R_Escal_RuleAEVEvent(REF rule: R_ESCALATION_RULE_REC) IS

Parameters

this_Command - Current command record

Returns

Nothing

Side Effects

None

Description

This is the Event handler for updating escalation options.

Dialog Forms Called

None


R_EscalationOptionsEvent

File Name

resc_ww.kb

Syntax

R_EscalationOptionsEvent(REF escOptions: R_ESCALATION_OPTIONS_REC) IS

Parameters

escOptions - Escalation Options which include the

escalation profile record retrieved from the

Database and the list of Escalation rules

which are retrieved from the database when

the dialog is created. TCM only uses the

DEF_ESC_POLL_PER field (Escalation Polling

Period) in the escalation profile record,

but the entire record is retrieved to remain

consistent with TPM.

Returns

Nothing

Side Effects

None

Description

This is the event handler for updating escalation options.

Dialog Forms Called

None


R_EscStartTypeToDesc

File Name

resc_ww.kb

Syntax

R_EscStartTypeToDesc(REF rule: R_ESCALATION_RULE_REC) IS

Parameters

rule - Escalation rule record

Returns

Nothing

Side Effects

None

Description

This routine sets the start-date string in the specified rule record for TCM Escalations.

Dialog Forms Called

None


R_LoadEscalationRules

File Name

resc_ww.kb

Syntax

R_LoadEscalationRules(REF rules: LIST OF R_ESCALATION_RULE_REC, VAL esc_Rule_SQL_String: STRING): INTEGER IS

Parameters

rules - List of Escalation Rules to be returned

esc_Rule_SQL_String - Search criteria for SQL select

Returns

Integer

Side Effects

None

Description

This routine loads TCM Escalation Rules matching the selection criteria.

Dialog Forms Called

None


R_LoadRule

File Name

resc_ww.kb

Syntax

R_LoadRule(REF rule: R_ESCALATION_RULE_REC): BOOLEAN IS

Parameters

rule - the rule to be loaded

Returns

Boolean

Side Effects

None

Description

This routine loads escalation rules for a given escalation. TRUE is returned if any rules are successfully returned.

Dialog Forms Called

None


R_ProcessEscalationOptionFields

File Name

resc_ww.kb

Syntax

R_ProcessEscalationOptionFields(VAL w: WINDOW, REF this_escOptions: R_ESCALATION_OPTIONS_REC, VAL type: INTEGER) IS

Parameters

w - Current window

this_Risk - Current Escalation Option record

type - type of operation to R_Perform

Returns

Nothing

Side Effects

None

Description

This routine handles display issues for TCM Escalation Options.

Dialog Forms Called

None


R_RequestEscalationOptions

File Name

resc_ww.kb

Syntax

R_RequestEscalationOptions IS

Parameters

None

Returns

Nothing

Side Effects

None

Description

This wrapper routine is for the "Escalation Options" system action which brings up the "Escalation Options" dialog.

Dialog Forms Called

resc.dfc[workwithrules]


R_SelectRules

File Name

resc_ww.kb

Syntax

R_SelectRules IS

Parameters

None

Returns

Nothing

Side Effects

None

Description

This routine loads all rules for a given escalation type then enables or disables buttons according to what is returned.

Dialog Forms Called

None


R_SetCondition

File Name

resc_ww.kb

Syntax

R_SetCondition IS

Parameters

None

Returns

Nothing

Side Effects

None

Description

This routine sets the escalation rule condition.

Dialog Forms Called

None


R_SetDateTypePickList

File Name

resc_ww.kb

Syntax

R_SetDateTypePickList(VAL esc_type_id: INTEGER, VAL start_date_type: INTEGER) IS

Parameters

esc_type_id - Escalation type ID

start_date_type - Start date type

Returns

Nothing

Side Effects

None

Description

This routine sets the date type pick list.

Dialog Forms Called

None


R_SetIntervalControls

File Name

resc_ww.kb

Syntax

R_SetIntervalControls(VAL escLevel: INTEGER) IS

Parameters

escLevel - The escalation level of a given esc rule

Returns

Nothing

Side Effects

None

Description

Depending on the escalation level, various dialog controls will be enabled ordisabled, made blank, and/or mandatory.

Dialog Forms Called

None


R_UseForm

File Name

resc_ww.kb

Syntax

R_UseForm( VAL mode: INTEGER, REF rule: R_ESCALATION_RULE_REC): BOOLEAN IS

Parameters

mode - What mode you are in, be it Edit or View

rule - The rule to be viewed/edited

Returns

Boolean

Side Effects

None

Description

This routine sets the AEV_mode for the rule and creates the dialog in an edit or view context.

Dialog Forms Called

resc.dfc[ruleform]


R_ViewRule

File Name

resc_ww.kb

Syntax

R_ViewRule IS

Parameters

None

Returns

Nothing

Side Effects

None

Description

This routine views a TCM escalation rule.

Dialog Forms Called

None