Re: Looking for multiple D2W rule files strategy
Re: Looking for multiple D2W rule files strategy
- Subject: Re: Looking for multiple D2W rule files strategy
- From: Ramsey Gurley <email@hidden>
- Date: Thu, 26 Nov 2015 07:26:37 -0700
I do all rules in one file. I do create an empty user file to suppress warnings and keep it fast. Note: adding additional files adds a scan for that file in every framework.
Mostly I find this manageable so long as I reduce rules so they apply as broadly as possible. If every entity is a special little snowflake, it's less fun.
Markus Ruggiero <email@hidden> wrote:
Hi list,
A D2W app usually has the 2 rule files user.d2wmodel and d2w.d2wmodel. A wonder property allows to add more rule files (er.directtoweb.ERD2WModel.additionalModelNames). Up to now I have all my rules in those 2 default files. I am thinking about having one rule file per entity name. This works but is a nuisance because I have to maintain the value for this property. We currently have about 50 entities, thus 50 rule files, and therefore a rather large property value. During ongoing development new entities will be needed, others will go away. How are you folks handling this? All rules in one file? Separate files? How many? How to decide what to put where? And how to maintain the contents of the additionalModelNames property?
Thanks for any hints.
---markus---
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden