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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2
    • 4.2
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: