In addition:
 
1. "Add required plug-in" in configuration can not add the DRools libraries, is it correct?
2. Export operation ended with error: "Error occurred during the operation.  A zip file containing the build logs has been generated and placed at "D:\Eclipse Deploy" (zip file attached also). In the zip file, "The import org.drools cannot be resolved",..., seems like that DRools libraries missed.
 
How to solve this issue?
 
Any comment is welcome.
 
Thanks,
David
 
 


From: Huang, XiaoDong David
Sent: Thursday, February 14, 2008 2:55 PM
To: 'Rules Users List'
Subject: RE: RCP and DRools project: Unable to create view: org/drools/WorkingMemory

Hi,
 
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:
 
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:
 
workingMemory = ruleBase.newStatefulSession();
 
Error message and a view RCP codes in which rule is fired are attached.
 
My steps of constructing the RCP+DRools project:
 
1. Create Plug-in project with RCP
2. Add customized view and add some buttons
3. Run as Eclipse Application, everything is fine
4. "Convert to DRools project" using the pop-up menu, some DRools libraries were added.
5. Add button event and fire rules in a view - "EditView"
6. Run as Eclipse Application, EditView can not be displayed properly and throw out error message.
7. if "workingMemory = ruleBase.newStatefulSession();" is disabled, the view can be display correctly again.
 
Is my DRools calling method in RCP correct?
 
Please comment.
 
Thanks,
David