[
https://issues.redhat.com/browse/DROOLS-5817?page=com.atlassian.jira.plug...
]
Toshiya Kobayashi updated DROOLS-5817:
--------------------------------------
Description:
exec-model fails to handle ZonedDateTime with the following rule.
{noformat}
rule R when
$t1 : TimestampedObject()
$t2 : TimestampedObject( zonedDateTime after $t1.zonedDateTime )
then
list.add($t2.getName());
end
{noformat}
{noformat}
java.lang.RuntimeException: Cannot extract timestamp from
2021-01-29T17:21:38.986580+09:00[Asia/Tokyo]
at
org.drools.core.base.evaluators.PointInTimeEvaluator.getTimestampFromDate(PointInTimeEvaluator.java:114)
at
org.drools.modelcompiler.constraints.TemporalConstraintEvaluator.getStartTimestamp(TemporalConstraintEvaluator.java:79)
at
org.drools.modelcompiler.constraints.TemporalConstraintEvaluator.evaluate(TemporalConstraintEvaluator.java:49)
at
org.drools.modelcompiler.constraints.LambdaConstraint.isAllowedCachedLeft(LambdaConstraint.java:162)
at
org.drools.core.common.SingleBetaConstraints.isAllowedCachedLeft(SingleBetaConstraints.java:134)
at org.drools.core.phreak.PhreakJoinNode.doLeftInserts(PhreakJoinNode.java:108)
at org.drools.core.phreak.PhreakJoinNode.doNode(PhreakJoinNode.java:71)
...
{noformat}
This issue is found in org.drools.mvel.integrationtests.TemporalOperatorTest but there is
another issue in TemporalOperatorTest so will be split to another JIRA (DROOLS-5974). This
JIRA addresses only the ZonedDateTime issue.
was:
exec-model fails to handle ZonedDateTime with the following rule.
{noformat}
rule R when
$t1 : TimestampedObject()
$t2 : TimestampedObject( zonedDateTime after $t1.zonedDateTime )
then
list.add($t2.getName());
end
{noformat}
{noformat}
java.lang.RuntimeException: Cannot extract timestamp from
2021-01-29T17:21:38.986580+09:00[Asia/Tokyo]
at
org.drools.core.base.evaluators.PointInTimeEvaluator.getTimestampFromDate(PointInTimeEvaluator.java:114)
at
org.drools.modelcompiler.constraints.TemporalConstraintEvaluator.getStartTimestamp(TemporalConstraintEvaluator.java:79)
at
org.drools.modelcompiler.constraints.TemporalConstraintEvaluator.evaluate(TemporalConstraintEvaluator.java:49)
at
org.drools.modelcompiler.constraints.LambdaConstraint.isAllowedCachedLeft(LambdaConstraint.java:162)
at
org.drools.core.common.SingleBetaConstraints.isAllowedCachedLeft(SingleBetaConstraints.java:134)
at org.drools.core.phreak.PhreakJoinNode.doLeftInserts(PhreakJoinNode.java:108)
at org.drools.core.phreak.PhreakJoinNode.doNode(PhreakJoinNode.java:71)
...
{noformat}
This issue is found in org.drools.mvel.integrationtests.TemporalOperatorTest but there is
another issue in TemporalOperatorTest so will be split to another JIRA. This JIRA
addresses only the ZonedDateTime issue.
Cannot extract timestamp from ZonedDateTime in executable-model
---------------------------------------------------------------
Key: DROOLS-5817
URL:
https://issues.redhat.com/browse/DROOLS-5817
Project: Drools
Issue Type: Bug
Components: executable model
Affects Versions: 7.46.0.Final
Reporter: Toshiya Kobayashi
Assignee: Toshiya Kobayashi
Priority: Major
exec-model fails to handle ZonedDateTime with the following rule.
{noformat}
rule R when
$t1 : TimestampedObject()
$t2 : TimestampedObject( zonedDateTime after $t1.zonedDateTime )
then
list.add($t2.getName());
end
{noformat}
{noformat}
java.lang.RuntimeException: Cannot extract timestamp from
2021-01-29T17:21:38.986580+09:00[Asia/Tokyo]
at
org.drools.core.base.evaluators.PointInTimeEvaluator.getTimestampFromDate(PointInTimeEvaluator.java:114)
at
org.drools.modelcompiler.constraints.TemporalConstraintEvaluator.getStartTimestamp(TemporalConstraintEvaluator.java:79)
at
org.drools.modelcompiler.constraints.TemporalConstraintEvaluator.evaluate(TemporalConstraintEvaluator.java:49)
at
org.drools.modelcompiler.constraints.LambdaConstraint.isAllowedCachedLeft(LambdaConstraint.java:162)
at
org.drools.core.common.SingleBetaConstraints.isAllowedCachedLeft(SingleBetaConstraints.java:134)
at org.drools.core.phreak.PhreakJoinNode.doLeftInserts(PhreakJoinNode.java:108)
at org.drools.core.phreak.PhreakJoinNode.doNode(PhreakJoinNode.java:71)
...
{noformat}
This issue is found in org.drools.mvel.integrationtests.TemporalOperatorTest but there is
another issue in TemporalOperatorTest so will be split to another JIRA (DROOLS-5974). This
JIRA addresses only the ZonedDateTime issue.
--
This message was sent by Atlassian Jira
(v8.13.1#813001)