Name
sn_nb_action.RuleTypeHandlerBase
Description
Base class to implement a handler to evaluate rules of a specific type such as Conditional, Decision Table, etc. An implementation of this class is used to evaluate specific type of rule to get recommended actions.
Script
var RuleTypeHandlerBase = Class.create();
RuleTypeHandlerBase.prototype = {
initialize: function() {},
/*
* This identifies the rule type handled by this implementation.
* Should be name of a table that extends "sn_nb_action_rule_base" table.
*/
getId: function() {
//No Op - Should be overriden by an extension
},
/*
* Return an array of GlideRecord actions recommended by this rule
*/
evaluateRule: function(currentRecord, ruleRecord, recommendationType) {
//No Op - Should be overriden by an extension
},
/*
* Returns true if the rule is valid
* This function should be overridden by extension to implement the validation
*/
isValidRule: function(ruleRecord) {
//No Op - Should be overriden by an extension
return true;
},
type: 'RuleTypeHandlerBase'
};
Sys ID
2f0f4cb53b7a1010c24e870044efc403