I'm using a com.webobjects.directtoweb.Assignment, using a 
ERDDelayedAssignment produces the same results.

And also have a rule for the other possible type of event

(task = 'edit' and entity.name = 'AMEvent' and object.eventType = '2')

It seems like the lhs always get's evaluated in its entirety, before being 
determined invalid. I was under the impression that in this case the rule 
evaluation would stop at task = 'edit' since the task = 'list' here.  

-- 
Freddie


On 29 mrt. 2013, at 21:21, David Holt <[email protected]> wrote:

> Do you have a base rule that tells the system what to do when it is NOT the 
> value you're concerned about?
> 
> Sent from my iPad
> 
> On 2013-03-29, at 1:18 PM, David Holt <[email protected]> wrote:
> 
>> Are you using the delayed assignment?
>> 
>> Sent from my iPad
>> 
>> On 2013-03-29, at 12:40 PM, Freddie Tilley 
>> <[email protected]> wrote:
>> 
>>> Hi, 
>>> 
>>> I'm having a strange issue with a D2w rule.
>>> 
>>> the left hand side is as follows:
>>> 
>>> (task = 'edit' and entity.name = 'AMEvent' and object.eventType = '1') with 
>>> a right hand side key of displayPropertyKeys
>>> 
>>> The thing is is that the object.eventType will get called on objects that 
>>> aren't even AMEvent objects, which will then call the
>>> handleQueryWithUnboundKey of the enterprise object. Even when deleting an 
>>> object in a list view it throws a java.lang.NullPointerException in 
>>> EOUtilities.java when handleQueryWithUnboundKey is called on the deleted 
>>> object.
>>> 
>>> When debugging the d2w rule it shows the object.eventType as a dependancy 
>>> even on totally unrelated pages.
>>> 
>>> DEBUG er.directtoweb.rules.displayPropertyKeys.cache (ListAMGroup) - CACHE: 
>>> displayPropertyKeys for propertyKey: null depends on: ("pageConfiguration", 
>>> "task", "entity", "object.eventType", "propertyKey")
>>> 
>>> Even disabling the rule in RuleModeler will still still call 
>>> object.eventType on the displayPropertyKeys rhs key
>>> 
>>> CACHE: displayPropertyKeys for propertyKey: null depends on: 
>>> ("pageConfiguration", "task", "entity", "RuleIsDisabled", 
>>> "object.eventType", "propertyKey")
>>> 
>>> Only deleting the rule will prevent the action from being called.
>>> 
>>> The idea of the rule is to show certain properties for a certain event 
>>> type. Any idea how to solve this?
>>> 
>>> -- 
>>> Freddie Tilley
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list      ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
>>> 
>>> This email sent to [email protected]
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
>> 
>> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to