Weird problem with D2W rules
Weird problem with D2W rules
- Subject: Weird problem with D2W rules
- From: Freddie Tilley <email@hidden>
- Date: Fri, 29 Mar 2013 20:40:46 +0100
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden