[jboss-jira] [JBoss JIRA] (DROOLS-1596) Error checking allowed values for input nodes of duration and date and time types

Edson Tirelli (JIRA) issues at jboss.org
Fri Jun 2 18:01:00 EDT 2017


Edson Tirelli created DROOLS-1596:
-------------------------------------

             Summary: Error checking allowed values for input nodes of duration and date and time types
                 Key: DROOLS-1596
                 URL: https://issues.jboss.org/browse/DROOLS-1596
             Project: Drools
          Issue Type: Bug
          Components: dmn engine
    Affects Versions: 7.1.0.Beta2
            Reporter: Edson Tirelli
            Assignee: Edson Tirelli
             Fix For: 7.1.0.Final


>From Melanie:
--------
Maybe something is off in our serialization, but when I try to execute the attached file it always tell me my values are incorrect event when they are within the allowed range. That file is a really dumb decision that just create a boxed context with the two inputs it gets. Those inputs are one yearMonthDuration and one date time. Both are defined with Item definition and have a constraints on them. Setting constraints on all the other types works fine.
--------
 Here are the messages:

I send P20Y and  2017-05-16T17:58:00.000Z to the back end. Then I use (BuiltInType) BuiltInType.determineTypeFromName(type) in the back end to have the proper feel type and feelType.fromString(value) to get the proper object.
 
The returned type for yearMonthDuration is duration and a Period with the proper value is create for it. For date time it is a DATE_TIME and a ZonedDateTime is create for it.
 
All of that seem fine.
----------



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list