[
https://issues.jboss.org/browse/DROOLS-10?page=com.atlassian.jira.plugin....
]
Edson Tirelli commented on DROOLS-10:
-------------------------------------
Drools 6 is not a complete rewrite. The major change is how rules are deployed, that we
hope users will find much easier in 6. Actual rule files and runtime will be mostly
backward compatible (as much as we can on a major release).
Unfortunately, as part of the open source project, we don't have the resources (i.e.
developers, release engineers, etc) to support previous versions. We can make sure this
works in the current version we are developing (6.0). If you need support for previously
released versions I recommend you contact Red Hat as they do support each version of the
product for 5 years providing cumulative bug fix patches and etc.
Cannot use @timestamp annotation on a java.sql.Timestamp field when
declaring metadata for an existing Java type
----------------------------------------------------------------------------------------------------------------
Key: DROOLS-10
URL:
https://issues.jboss.org/browse/DROOLS-10
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Ken Warkentyne
Assignee: Edson Tirelli
Fix For: 6.0.0.Alpha1
We have a Java class that uses java.sql.Timestamp to record time values. In Drools 5.0.1,
we were able to use the @timestamp annotation as follows:
{code}
declare StateEvent
@role( event )
@timestamp( startTime )
@duration( duration )
end
{code}
StateEvent contains the following:
{code}
import java.sql.Timestamp;
...
private Timestamp startTime;
private Long duration;
public Timestamp getStartTime() {
return startTime;
}
public void setStartTime(Timestamp st) {
startTime = st;
}
public Long getDuration() {
return duration;
}
public void setDuration(Long d) {
duration = d;
}
....
{code}
We load the rules from a .drl file as follows:
{code}
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newClassPathResource("path-to-file",
ResourceType.DRL);
{code}
In 5.4.0, this no longer works and we get the error message:
{code}
Annotated type StateEvent - undefined property in @annotation timestamp:
java.sql.Timestamp.value();
{code}
Also tested with 5.5.0.Final and 5.5.0.CR1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira