Uploaded image for project: 'Gazelle Objects Checker'
  1. Gazelle Objects Checker
  2. GOC-107

Generation error on OCL constraint when restrict double to int

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      2018 - S8
    • Account:
      EHEALTHSUISSE2018 (EHS2018)

      Description

      In BBR chcda, template cdach_entry_InabilityToWorkObservation, there is the PQ datatype that has its @value restricted from double to int.

      This generate a OCL constraint such as
      context cdach_entry_InabilityToWorkObservation
      inv: self.value->select(oclIsKindOf(PQ)).oclAsType(PQ)->forAll(value.oclIsUndefined() or CommonOperationsStatic::matches(value.toString(), '\d*'))

      However value.toString() cannot be applied on a double, this makes the compilation of generated validator failing.

        Attachments

          Activity

            People

            Assignee:
            ceoche Cédric Eoche-Duval
            Reporter:
            ceoche Cédric Eoche-Duval
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 1 hour, 15 minutes
                2d 1h 15m

                  Potential Duplicates