From 4b3f7aea61eed949d599abf92ccd865005b80516 Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Fri, 26 Apr 2019 00:00:44 +0200 Subject: [PATCH] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 98d82c1..33acbbd 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,8 @@ actions: ``` ```java -Rule weatherRule = MVELRuleFactory.createRuleFrom(new FileReader("weather-rule.yml")); +MVELRuleFactory ruleFactory = new MVELRuleFactory(new YamlRuleDefinitionReader()); +Rule weatherRule = ruleFactory.createRule(new FileReader("weather-rule.yml")); ``` ### 2. Then, fire it!