Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-4458

String to Boolean coercion doesn't work in executable model

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.27.0.Final
    • 7.25.0.Final
    • executable model
    • None

    Description

      When having constraint like this:

      Person(booleanAttribute == "true")

      a build using executable model ends with an exception [1]. This is because the constraint parser doesn't coerce "true" to a boolean true.

      [1] https://gist.github.com/baldimir/e0f1aa27d194b750148f779370d13560

      Attachments

        Activity

          People

            tzimanyi@redhat.com Tibor Zimányi
            tzimanyi@redhat.com Tibor Zimányi
            Jiri Petrlik Jiri Petrlik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: