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!