<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><b><span style='font-size:10.0pt;color:black'>Question:</span></b><span
style='font-size:10.0pt;color:black'> <br>
<br>
What is the best way to customize the validation in the BRMS? &nbsp;Is there a
callout method that exists in JBoss Rules already to override the current
validator with a custom validator? <br>
<br>
<br>
<b>Reason:</b> <br>
<br>
I have a data driven object models and my users create rules in decision
tables. &nbsp; <br>
<br>
I will have a decision table column header such as <br>
<br>
<b>&nbsp;&lt;Attribute&gt; equals &lt;value&gt; &nbsp;</b> <br>
<br>
and the user will enter a value in the cell for the 3 parameters <br>
<br>
<b>DRIVER, age, 23</b> <br>
<br>
The java mapping for the condition column would be like: <br>
<br>
<b>eval($1.isHashmapValueEqual(&quot;$2&quot;, &quot;$3&quot;))</b> <br>
<br>
<br>
After parsing the decision table, the DRL would look like this <br>
<br>
<b>DRIVER.isHashmapValueEqual(&quot;age&quot;, &quot;23&quot;);</b> <br>
<br>
<br>
In this scenario, I do not have a DRIVER class until the rule is parsed and I
create a proxy DRIVER class to use for rules execution. &nbsp;This proxy class
generation is performed on the execution side on application startup and not on
the management side. &nbsp;The management side never has a DRIVER to validate
the rule against.</span><o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><img
width=132 height=23 id="Picture_x0020_1"
src="cid:image001.jpg@01C7E63D.840C7170" alt=railinc><o:p></o:p></span></b></p>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>____________________________________________________<o:p></o:p></span></b></p>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Barry
Knapp<o:p></o:p></span></b></p>

<p class=MsoNormal><b><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'><a
href="mailto:Barry.Knapp@RailInc.com"><span style='color:blue'>Barry.Knapp@RailInc.com</span></a><o:p></o:p></span></b></p>

<p class=MsoNormal><b><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>919.651.5039<o:p></o:p></span></b></p>

<p class=MsoNormal><b><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>MSN
Messenger <a href="mailto:barry25@hotmail.com"><span style='color:blue'>barry25@hotmail.com</span></a>
<o:p></o:p></span></b></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>