Hi,
how do i set the @expires vaule in the java class.
because in drl file @expires id not accepting the variables. so i want to
set it in the java class. how do i do that
my sample drl file looks like this
declare MyEvent
@role(event)
//@expires(timeThreshold) not working because its not accepting the
variables
end
my event class looks like this
public class MyEvent {
private String eventName;
public String getEventName() {
return eventName;
}
public void setEventName(String eventName) {
this.eventName = eventName;
}
public MyEvent(String eventName) {
super();
this.eventName = eventName;
}
}
Now how do i delclate @expires in this java class ?
--
View this message in context:
http://drools.46999.n3.nabble.com/setting-the-expires-in-java-tp4025574.html
Sent from the Drools: User forum mailing list archive at
Nabble.com.