Forum Discussion
FICO
17 years agoCommunity Manager
Advanced filtering/content extraction
Advanced filtering/content extraction Hi, I have a situation where it would be useful to implement/maintain several rules regarding an area in one place (RMA), but where not all rules are relevant ...
FICO
17 years agoCommunity Manager
Yes, you can do this by using filters together with a ruleset template where rule instances are stored separately.
- Create a ruleset template and a rule template.
- Add a value holder for the rule template with count of "0 or more" and check "Instances stored separately" flag. This will allow you to keep each rule instance in its own version controlled file.
- Create a filter that removes rule instances that you don't want in your deployed project. In my testing I have defined a management property for the SRL Rule entity type and then created a filter that excludes entities of SRL Rule type based on the management property value. But you can use some other criteria, of course, such as rule name or content.
- After applying filter in Builder I can see that some rule instances in the ruleset instance have been grayed out. When running filtered project I can confirm that excluded rules did not fire, even though the SRL preview page still shows that excluded rule as a part of the generated SRL code.
Related Content
Related Content
- 0Views0likes1Comment