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

Conditional mapping to administrativeStatus does not work

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3 (Lincoln)
    • backlog
    • None

    Description

      The following mapping:

       <activation>
                  <administrativeStatus>
                     <outbound>
                        <strength>strong</strength>
                        <source>
                           <c:path>assignment</c:path>
                        </source>
                        <expression>
                           <value>enabled</value>
                        </expression>
                        <condition>
                           <script>
                              <code>
                                    !midpoint.isDirectlyAssigned(user, 'a4ce0d72-ebf5-4214-9d76-65f1a98a6ea3')
                                </code>
                           </script>
                        </condition>
                     </outbound>
                     <outbound>
                        <strength>strong</strength>
                        <source>
                           <c:path>assignment</c:path>
                        </source>
                        <expression>
                           <value>disabled</value>
                        </expression>
                        <condition>
                           <script>
                              <code>
                                    midpoint.isDirectlyAssigned(user, 'a4ce0d72-ebf5-4214-9d76-65f1a98a6ea3')
                                </code>
                           </script>
                        </condition>
                     </outbound>
                  </administrativeStatus>
               </activation>
      

      Works only when "Reconcile" option is selected, not under normal circumstances.
      The reason is probably in the code of MappingEvaluationHelper:290 where we require full account in order to apply the change.

      Attachments

        Activity

          People

            mederly Pavol Mederly
            mederly Pavol Mederly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: