Skip to content

Commit

Permalink
Add note explainig that ruleName is retrieved as part of the EPL text…
Browse files Browse the repository at this point in the history
… when the rule is recovered using GET
  • Loading branch information
cblanco committed Feb 1, 2019
1 parent b25bd0f commit 0917cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/plain_rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ from pattern

* The *from* pattern must name the event as **ev** and the event stream from which take events must be **iotEvent**
* A *type=* condition must be concatenated for avoiding mixing different kinds of entities
* The variable 'ruleName' in automatically added to the action, even if it is not present in the EPL text.
* The variable 'ruleName' in automatically added to the action, even if it is not present in the EPL text. The ruleName automatically added this way is retrieved as part of the EPL text when the rule is recovered using GET /rules or GET /rules/{name}.

**Backward compatibility note:** since version 1.8.0 it is not mandatory to specify the name of the rule as part of the EPL text. In fact, it is not recommendable to do that. However, for backward compatibility, it can be present as *ruleName* alias (`e.g: select *, "blood_rule_update" as ruleName...`) in the select clause. If present, it must be equal to the ‘name’ field of the rule object.

Expand Down

0 comments on commit 0917cbd

Please sign in to comment.