<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)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.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="1026" />
</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>I have a set of externally defined java beans that are
utilized elsewhere in the overarching application, and would like to declare
these external classes as events within drools. I am able declare these objects
as events, and compile a drools DRL file, and execute the rules.&nbsp; When the
same DRL is imported into the Guvnor, the resulting package &#8220;PKG&#8221; issues
an &nbsp;&#8220;unable to define Type Declaration class {object}&#8221; exception
error.&nbsp; Preliminary investigation has turned up JIRA #&#8217;s GUVNOR-379
&lt;https://jira.jboss.org/jira/browse/GUVNOR-379&gt;, and BRMS-144 &lt;https://jira.jboss.org/jira/browse/BRMS-144&gt;,
that indicate this behavior has been identified, but no solution is
presented.&nbsp; The Drools documentation for both the expert and fusion
component functionality indicates that metadata can be declared with or without
actually declaring fields. This capability is key to allowing the utilization
of externally defined data model objects within drools.<o:p></o:p></p>

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

<p class=MsoNormal>Example DRL declaration section that works as specified when
the DRL file is built into a knowledge base, but does not work when the Guvnor
package is built in to a knowledge base. I am currently utilizing Drools 5.0.1
in both the IDE development environment as well as the Guvnor deployment
environment.<o:p></o:p></p>

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

<p class=MsoNormal>begin &nbsp;data model fragment &#8230;<o:p></o:p></p>

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

<p class=MsoNormal>Import com.datamodel.MyEvent;<o:p></o:p></p>

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

<p class=MsoNormal>Declare MyEvent<o:p></o:p></p>

<p class=MsoNormal>&nbsp;&nbsp; @role(event)<o:p></o:p></p>

<p class=MsoNormal>&nbsp; @timestamp(eventDate)<o:p></o:p></p>

<p class=MsoNormal>end<o:p></o:p></p>

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

<p class=MsoNormal>&#8230; end data model fragment<o:p></o:p></p>

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

<p class=MsoNormal>Seems that the data model definition shown above should produce
the same results whether using the DRL resource type, or the PKG resource
produced by the Guvnor package builder.&nbsp; Are these JIRA&#8217;s closed in 5.1
or are they still pending.&nbsp; The system utilizing the Guvnor should allow
deployment of DRLs to the GUVNOR without change, this bug does not allow that. <o:p></o:p></p>

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

<p class=MsoNormal><i><span style='font-size:13.5pt;font-family:"Arial","sans-serif";
color:green'>David A. Meyer</span></i><span style='font-size:12.0pt;font-family:
"Times New Roman","serif"'> <br>
</span><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>System
Engineer</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>
<br>
</span><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>I&amp;SS
Mission Operations - Colorado</span><span style='font-size:12.0pt;font-family:
"Times New Roman","serif"'> <br>
</span><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>Boeing
Defense, Space &amp; Security</span><span style='font-size:12.0pt;font-family:
"Times New Roman","serif"'> <br>
</span><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>The
Boeing Company</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>
<br>
</span><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>Telephone
303-307-5836</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>
</span><o:p></o:p></p>

</div>

</body>

</html>