Method description
This method gets all engines.
Return:
Type | Description |
---|---|
Array | The engines list as a string array. |
Example:
ss.importIncludeScript('SimpleEngine'); ss.info(SimpleEngine.getAllEngines()); |
This method returns the engine option by the name specified.
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
optionName | String | Y | N |
Return:
Type | Description |
---|---|
SimpleEngine object | The object containing engine option. |
Example:
This method gets engine option values for the table specified.
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
optionName | String | Y | N |
tableName | String | Y | N |
Return:
Type | Description |
---|---|
String | The engine option value for the table specified. |
Example:
ss.importIncludeScript('SimpleEngine'); const engine = new SimpleEngine('Following Engine') ss.info(engine.getOptionValueForTable('Active', 'itsm_inquiry')) // TRUE |
This method returns if the engine enabled for the table specified.
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
tableName | String | Y | N |
Return:
Type | Description |
---|---|
Boolean | If an engine is enabled for the table specified then the method returns TRUE; otherwise, it returns FALSE. |
Example:
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'); } |