when i modified the default constructor function of class, then i created a new object in drl file.The error occured,like this: the source attachment does not contain the source for file AbstractWorkingMemorry.class
the code is:
public static class Message {
public static final int HELLO = 0;
public static final int GOODBYE = 1;
private String message;
private int status;
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
public int getStatus() {
return this.status;
}
public void setStatus(int status) {
this.status = status;
}
Message(String message, int status){
this.message = message;
this.status = status;
}
}
the drl file content:
rule "init"
when
eval(true);
then
Message message = new Message("s", 1);
message.setMessage("Hello Xiaodong");
message.setStatus(Message.HELLO);
insert(message);
end
How to deal with the problem?