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

Second trigger not created

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.0.1
    • Fix Version/s: 4.1, 4.0.3
    • Component/s: Model
    • Labels:
    • Subscription:
      Active subscription
    • Backport Version:

      Description

      Template contains mapping:

      <mapping>
          <strength>strong</strength>
          <!--  some sources -->
          <expression>
              <script>
                  <code>
                      // in our case this returns null
                      return null
                  </code>
              </script>
          </expression>
          <target>
              <path>assignment</path>
              <set>
                  <condition>
                      <script>
                          <code>
                              import com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType
      
                              def assignment = assignment as AssignmentType
      
                              // role that should be removed
                              return assignment?.targetRef?.oid == 'SOME_OID'
                          </code>
                      </script>
                  </condition>
              </set>
          </target>
          <timeFrom>
              <expression>
                  <script>
                      <code>
      
                          def date = // put here something now() + 8 days
      
                          return basic.addDuration(date, "-P1D")
                      </code>
                  </script>
              </expression>
          </timeFrom>
      </mapping>

      user already has trigger with date "tomorrow".

      After recon I would think user will have 2 triggers. Without timeFrom part mapping tries to correctly remove assignment.

       

       Don't push to support branch unless approved

        Attachments

          Activity

            People

            Assignee:
            lazyman Viliam Repan
            Reporter:
            lazyman Viliam Repan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: