Hi,
is there any way to delete a deftemplate which has wrongly been created due to an 
error in a rule?

One situation where this might occurr is when you want to create a template from a 
java-class through the defclass statement and then have rules working on the 
deftemplate automatically created by the defclass statement. If you then by misstake 
batch the rule-file before the file containing the defclass statement you get the 
following situation:

1. The rule-file you loaded will not be accepted and generates a "bad slot value 
error" most probably because you typically want to access attributes of a bean or 
static class and Jess has automatically generated a template representing the ordered 
fact which only has one slot, data, which is a multifield. (all described in the 
manual)

2. The batch-file containing the defclass won't get loaded either, since it is not 
allowed to redefine a template with a different definition.

The solution I have used so far is to restart Jess totally but I am very interrested 
in easier solutions.
 

Mikael Rundqvist

---------------------------------------------------------------------
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