i
Rule Execution
Access methods are used to retrieve items or access specific functionalities.
Access Method
Name |
Description |
Result |
---|---|---|
$d.executeRule(name, version, params, callback) |
It allows to execute an advanced Rest API-type rule.
Parameters •String name: Rule name •Number version: Rule version •Object params: Object where the rule parameters are sent •Callback callback: Function that is executed after performing the operation
Example:
$d.executeRule("generateResponseAboutDocumentation", 1, { 'pQuery': query, 'pTemplate': template, 'user': user, 'pEnvironment': environment, 'pResponse': answer, }, (response, error) => {}); |
-- |