Thanks @ssmusoke for your help and patience. I think we are very close to our target. I've made the some changes including the changes you suggested. Now, the test is passing.
I also dig through some DINT module code and understand the flow a little bit. I'm guessing, that the error (that UI error) is preventing us to saving the rule in the metadata.
I again tried to running server with DINT module and my custom module. I'm getting error in this block of code . Java isn't able to cast the loaded class into
RuleDefinition class even the
InvalidDateOfDeath implement this interface.
I request you to review my progress. I've updated the code of custom module. And here is my
config.xml which I'm using in root folder of DINT module.
config.xml (1.8 KB)
Please let me know if something is wrong.