It's me again...
Actually this mistake was a misunderstanding...  

See you soon! 
Daniela
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la
part de Daniela CLARO
Envoyi : jeudi 26 janvier 2006 20:11
@ : jess-users@sandia.gov
Objet : JESS: ExecuteCommand(variable) versus ExecuteCommand(string)

Hi folks,
 I am having some problems running my rules in Java using executeCommand.
When I run using a variable 'knowledgeBaseRule' that is a StringBuffer
rete.executeCommand(knowledgeBaseRule.toString());

I don't receive any answer and it does not call either my bean.


When I catch the string given by 'knowledgeBaseRule' and I paste as shown
above, everything works fine. 
 rete.executeCommand("(set-reset-globals nil)"+  "(reset)"+  "(defglobal
?*obj* = (new MarchePublicBeanPlan))"+  "(assert (existPlancher))"+

"(defrule creationEscalierBeton"+
"(existPlancher)"+
"(betonFournit)"+
"=>"+
"(assert (existEscalierBeton))"+
"(call ?*obj* setAction 'fournitureBeton')"+ "(store RESULT (call ?*obj*
getAction))"+ ")"+ "(defrule fournitureBeton"+ "(not(betonFournit))"+ "=>"+
"(assert (betonFournit))"+ "(call ?*obj* setAction 'fournitureBeton')"+
"(store RESULT (call ?*obj* getAction))"+ ")");



Am I missing something? 
Thanks in advance,
Daniela

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your
own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------


--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to