<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
<STYLE>@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Tahoma
}
LI.MsoNormal {
        FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Tahoma
}
DIV.MsoNormal {
        FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Tahoma
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: #606420; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: #606420; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=#606420 link=blue>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008>Hi,</SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008></SPAN></o:p></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008>I am trying to use RCP to develop a BRMS. But I am a
newcomer of both RCP and DRools. The problem in my program
is:</SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008></SPAN></o:p></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008>A view can not be displayed properly while the DRools
program is added in my RCP project. But if I disable below statement, the view
can be displayed:</SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008></SPAN></o:p></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008><EM>workingMemory =
ruleBase.newStatefulSession();</EM></SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008><EM></EM></SPAN></o:p></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008>Error message and a view RCP codes in which rule is
fired are attached.</SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008></SPAN></o:p></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008>My steps of constructing the RCP+DRools
project:</SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008></SPAN></o:p></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008>1. Create Plug-in project with
RCP</SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008>2. Add customized view and add some
buttons</SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008>3. Run as Eclipse Application, everything is
fine</SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008>4. "Convert to DRools project" using the pop-up menu,
some DRools libraries were added.</SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008>5. Add button event and fire rules in a view -
"EditView"</SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008>6. Run as Eclipse Application, EditView can not be
displayed properly and throw out error message.</SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008>7. if "<SPAN class=084435405-14022008><EM>workingMemory
= ruleBase.newStatefulSession();"</EM> is disabled, the view can be display
correctly again.</SPAN></SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008><SPAN
class=084435405-14022008></SPAN></SPAN></o:p></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008><SPAN class=084435405-14022008>Is my DRools calling
method in RCP correct?</SPAN></SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008><SPAN
class=084435405-14022008></SPAN></SPAN></o:p></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008><SPAN class=084435405-14022008>Please
comment.</SPAN></SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008><SPAN
class=084435405-14022008></SPAN></SPAN></o:p></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008><SPAN
class=084435405-14022008>Thanks,</SPAN></SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008><SPAN
class=084435405-14022008>David</SPAN></SPAN></o:p></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008><SPAN
class=084435405-14022008></SPAN></SPAN></o:p></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><o:p><SPAN
class=084435405-14022008><SPAN
class=084435405-14022008></SPAN></SPAN></o:p></FONT> </DIV></BODY></HTML>