Pinned topic How to extend external rule CompareAddressRule
AddPartyAddress and UpdatePartyAddress use compareAddressRule (rule id -39) for checking whether address already exists.
i want to change rule's default behaviour.For that i have extended CompareAddressRule class and overridden execute method and updated javaimpl table for rule id - 39 with my own class.
But It's default behavior remains.
Please correct me if i miss any steps.
Thanks in advance
SystemAdmin 110000D4XK938 Posts
Re: How to extend external rule CompareAddressRule2012-12-21T12:04:29ZThis is the accepted answer. This is the accepted answer.I am using MDM version 9.0.
Anybody please guide me, i am very new in MDM.
bvbian 27000322EG1 Post
Re: How to extend external rule CompareAddressRule2013-04-16T09:39:05ZThis is the accepted answer. This is the accepted answer.
According infosphere MDM standards you should not directly change the rule class, instead take copy of CompareAddressRule class, modify it and keep in your project. Build the Project.
Then update JAVAIMPL table record.
SET JAVA_CLASSNAME = 'com.custom.mdm.extrules.CompareAddressRule',
LAST_UPDATE_DT = CURRENT TIMESTAMP,
LAST_UPDATE_USER = USER
WHERE EXT_RULE_IMPL_ID = 39;
Then restart the Server. It should work.