You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 5 Current »
Method description
This method gets all engines.
Return:
Example:
ss.importIncludeScript('SimpleEngine'); ss.info(SimpleEngine.getAllEngines());
This method returns the engine option by the name specified.
Parameter(s):
ss.importIncludeScript('SimpleEngine'); const engine = new SimpleEngine('Following Engine') ss.info(engine.getEngineOption('Active'))
This method gets engine option values for the table specified.
ss.importIncludeScript('SimpleEngine'); const engine = new SimpleEngine('Following Engine') ss.info(engine.getOptionValueForTable('Active', 'itsm_inquiry')) // TRUE
This method checks if the engine enabled for the table specified.
ss.importIncludeScript('SimpleEngine'); const engine = new SimpleEngine('Following Engine') if (engine.isEngineEnable('itsm_inquiry')) { ss.info('Following Engine enabled on itsm_inquiry'); } else { ss.info('Following Engine disabled on itsm_inquiry'); }