rule-engine-controller
Push user message to the rule engine (handleRuleEngineRequest)
Creates the Message with type 'REST_API_REQUEST' and payload taken from the request body. Uses current User Id ( the one which credentials is used to perform the request) as the Rule Engine message originator. This method allows you to extend the regular platform API with the power of Rule Engine. You may use default and custom rule nodes to handle the message. The generated message contains two important metadata fields:
- 'serviceId' to identify the platform server that received the request;
- 'requestUUID' to identify the request and route possible response from the Rule Engine;
Use 'rest call reply' rule node to push the reply from rule engine back as a REST API call response. The default timeout of the request processing is 10 seconds.
Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).
post/api/rule-engine/
Request body
string required
A JSON value representing the message.
Response
OK
string required