6. The Rule Files
⢠user.d2wmodel and d2w.d2wmodel
⢠In your Application
⢠In its Frameworks
⢠Identifying all of the rules at play is critical
11. Anatomy of a Rule
100 : entity.name = âMovieRoleâ => displayNameForEntity = âMovie Roleâ [Assignment]
Left Hand Side (LHS) Right Hand Side (RHS)
12. Your Job ( should you accept it...
)
this hard drive will self destruct in...
⢠Determine what LHS condition will identify the point in your app
that you want the behaviour to change.
⢠Identify what RHS key controls that behaviour
⢠Identify what value the RHS key needs to be need to be set to.
13. Why a priority of a million may
not be a good idea
⢠Establish priority guidelines
⢠Stray from those guidelines at your peril
⢠Arbitrarily high priorities, probably mean you are doing it wrong
14. Common Rule Problems
⢠Typos
⢠ConďŹicting LHS qualiďŹer with rules higher up the hierarchy
⢠Incorrect or non-existent keys
15. Rule Keys and Values
⢠Components
⢠The d2wContext
⢠Assignment objects
⢠Other rules
27. Page ConďŹgurations
⢠A shortcut to identify a task and entity combination
⢠Naming convetion: TaskModiďŹerEntity
⢠Are easier to read and remember
⢠Are more ďŹexible
⢠Can reduce the number of rules required