Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-6661

Function which returns type "String" even if "returnType" is "boolean"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: 4.2
    • Component/s: None
    • Labels:
    • Subscription:
      Active subscription

      Description

      We use a function for validation of values which we call from an outbound resource mapping. The function has "returnType" set to  <returnType>t:boolean</returnType> yet logging the value in the outbound mapping script expression returns "String":

      log.info("#### AD RESOURCE ###: class : {}", attributeValidation.execute("nameValidation", mapFixedFirst).getClass().toString())

      Returns

      INFO (com.evolveum.midpoint.expression): #### AD RESOURCE ###: class : class java.lang.String

       


      In general the output of the function acts like a string.

       

      Attaching the function in function library.

        Attachments

          Activity

            People

            Assignee:
            mmacik Matus Macik
            Reporter:
            mmacik Matus Macik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: