Subject: Re: How "LHS could match" works
Hi René,
Good question. The search evaluates each rule's LHS against what you type, and gives one of three answers:
- matches: every condition is satisfied by the keys in your search - can't match: at least one condition contradicts them, so the rule is hidden - could match: the LHS depends on keys your search doesn't fix (propertyKey, session.*, or any custom key), so it can't tell. Those rules are shown on purpose, so a rule that might fire is never hidden.
It understands =, <>, like and caseInsensitiveLike on string values, and and/or/not. Other operators (<, >, contains, key comparisons) also count as "could". Rules with no LHS (*true*) are left out.
The D2W assumption is only in what it infers from pageConfiguration. A pattern like '*Person' or 'ListPerson' is read as entity.name = 'Person', and prefixes such as List/Edit/Inspect/Query/EditRelationship are read as the task. Apart from that, it's plain logic on whatever keys you give it.
So in your setup, the many "could" results are most likely rules that depend on context keys your search didn't mention. You can narrow it by spelling out every key you know, e.g.:
myKey = 'value' and otherKey = 'x*'
I'm thinking about two options that would suit non-D2W use better: 1. switching off the pageConfiguration/entity/task inference 2. a strict mode that only shows rules mentioning at least one of the keys in your search
Would either of those help? An example of a rule that showed up but shouldn't have would help me get it right.
Regards, Ted On Nov 4, 2026, at 6:05 AM, René Bock <webobjects-dev@wocommunity.org> wrote:
Hi Ted,
how did you define "Rule [that|could] match? Do you assume that the target is a standard D2W Application?
In our frameworks, i use the d2w rules for an other kind of application. For my first tests in our modelGroup, there were too many "could matches" which won't match.
regards
René
|