Topic
2 replies Latest Post - ‏2013-04-16T09:39:05Z by bvbian
SystemAdmin
SystemAdmin
938 Posts
ACCEPTED ANSWER

Pinned topic How to extend external rule CompareAddressRule

‏2012-12-21T09:19:58Z |
Hi,

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

Thanks,
kartik
Updated on 2012-12-21T12:04:29Z at 2012-12-21T12:04:29Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    938 Posts
    ACCEPTED ANSWER

    Re: How to extend external rule CompareAddressRule

    ‏2012-12-21T12:04:29Z  in response to SystemAdmin
    I am using MDM version 9.0.

    Anybody please guide me, i am very new in MDM.
  • bvbian
    bvbian
    1 Post
    ACCEPTED ANSWER

    Re: How to extend external rule CompareAddressRule

    ‏2013-04-16T09:39:05Z  in response to SystemAdmin

    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.

     UPDATE <SchemaName>.JAVAIMPL
    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.