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

Correlation expression does not work when written in Groovy

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.2 (Crius)
    • Fix Version/s: 2.2 (Crius)
    • Component/s: Model
    • Labels:
      None
    • Git Revision:
      git-midpoint-2.2rc2-34-g1c09117

      Description

      This works:

      <q:equal>
        <q:path>c:name</q:path>
        <expression>
          <description>Matches using sAMAccountName.</description>
          <script>
            <language>http://www.w3.org/TR/xpath/</language>
            <code>$c:account/c:attributes/ri:sAMAccountName</code>
          </script>
        </expression>
      </q:equal>
      
      

      This does NOT work:

      <q:equal>
        <q:path>c:name</q:path>
        <expression>
          <description>Matches using sAMAccountName.</description>
          <script>
            <code>basic.getAttributeValue(account, 'sAMAccountName')</code>
          </script>
        </expression>
      </q:equal>
      
      

        Attachments

          Activity

            People

            Assignee:
            vix Ivan Noris
            Reporter:
            vix Ivan Noris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: