<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Can we configure location for Rules in ivy?</title><link>https://answers.axonivy.com/questions/3306/can-we-configure-location-for-rules-in-ivy</link><description>&lt;p&gt;Hi ivyteam&lt;/p&gt;
&lt;p&gt;I'm using ivy 7.0.3 with rules functionality. By default the rule will be stored in &lt;code&gt;&amp;lt;project source&amp;gt;\rules&lt;/code&gt; .
My question is: Can we configure to load rule from external folder?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3306/can-we-configure-location-for-rules-in-ivy" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 04 Jun 2018 05:16:40 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/3306/can-we-configure-location-for-rules-in-ivy/3307</link><description>&lt;p&gt;Yes that should be easy, but there is no generic configuration to change that directory.
But rules can be loaded from anywhere. Just implement an &lt;code&gt;IRuleResource&lt;/code&gt; that is able to load files from an external directory. Other teams did the same to load rules out of a Database.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.axonivy.com/doc/latest/PublicAPI/ch/ivyteam/ivy/rule/engine/api/resource/IRuleResource.html"&gt;https://developer.axonivy.com/doc/latest/PublicAPI/ch/ivyteam/ivy/rule/engine/api/resource/IRuleResource.html&lt;/a&gt;
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/rulesFromCustomResource.png"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 04 Jun 2018 05:16:40 -0400</pubDate><guid>https://answers.axonivy.com/questions/3306/can-we-configure-location-for-rules-in-ivy/3307</guid></item></channel></rss>