File Name
Syntax
R_ActionRecordDatabase(VAL InTran: BOOLEAN, VAL this_Action: R_ACTIONS_REC, VAL old_Action: R_ACTIONS_REC) IS
Parameters
InTran - Determine whether or not in a transaction
this_Action - Current action record
old_Action - Old record for database concurrency
Returns
Nothing
Side Effects
None
Description
This routine handles addition, modification, and removal of rule actions.
Dialog Forms Called
None
File Name
Syntax
R_FindRuleInList(VAL ID: INTEGER, VAL RuleList: LIST OF R_RULES_REC): R_RULES_REC IS
Parameters
ID - ID of rule record to find
RuleList - List of rule records to search
Returns
R_RULES_REC
Side Effects
None
Description
This routine gets the rule record matching the specified ID.
Dialog Forms Called
None
File Name
Syntax
R_Insert_table_CHANGE_TEXT( VAL current_text: R_CHANGE_TEXT_REC ): INTEGER
Parameters
current_text - text to be inserted.
Returns
Integer
Side Effects
None
Description
This routine inserts text into table CHANGE_TEXT.
Dialog Forms Called
None
File Name
Syntax
R_LoadActionsForRule: INTEGER IS
Parameters
None
Returns
Nothing
Side Effects
None
Description
This routine loads the actions for the current rule ONLY if the corresponding cached rule does NOT have rule actions already loaded. If rule actions are loaded, load they are loaded into the CSTACK and the rules caching stack, R_G_SRule.ARules.
Dialog Forms Called
None
File Name
Syntax
R_LoadGeneralRules( VAL org_id: STRING ): INTEGER IS
Parameters
org_id - Current organization
Returns
Integer
Side Effects
None
Description
Given an organization ID, this function loads the general rules into the cache.
Dialog Forms Called
None
File Name
Syntax
R_LoadRuleByID(REF this_Rule: R_RULES_REC): INTEGER IS
Parameters
this_Rule - Current rule record
Returns
Integer
Side Effects
None
Description
This routine loads a rule matching the given ID.
Dialog Forms Called
None
File Name
Syntax
R_LoadRules(VAL Rule_SQL_String: STRING): INTEGER IS
Parameters
Rule_SQL_String - SQL string to execute for rule retrieval
Returns
Integer
Side Effects
None
Description
This routine loads rules which match the given criteria.
Dialog Forms Called
None
File Name
Syntax
R_PopulateWWRuleMCLB( VAL w: WINDOW, VAL desination_MCLB: STRING) IS
Parameters
w -
destinationMCLB -
Returns
Nothing
Side Effects
None
Description
On creating the "Work With Rules" dialog, this routine selects the rules to be displayed. Note that we are loading them in the following order for a specific reason. This is the same order they will fire in: First, General rules will fire in order of priority. Next, Category specific rules will fire in order of priority.
Dialog Forms Called
None
File Name
Syntax
R_RuleRecordDatabase(VAL InTran: BOOLEAN): INTEGER IS
Parameters
InTran - Determine whether or not in a transaction
Returns
Integer
Side Effects
None
Description
This routine handles addition, modification, and removal of rule records.
Dialog Forms Called
None