<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Actually, it works. See last commit -
      this code:<br>
      <br>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New"">     private
            static
            void modifyRoleModifyInducement(ModelPortType modelPort,
            String roleOid) throws
            IOException, SAXException, FaultMessage {<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">        </span>ItemDeltaType
            inducementDelta = new
            ItemDeltaType();<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">       
            </span>inducementDelta.setModificationType(ModificationTypeType.ADD);<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">       
            </span>inducementDelta.setPath(ModelClientUtil.createItemPathType("inducement[3]/construction/attribute"));<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">        </span>inducementDelta.getValue().add(ModelClientUtil.parseElement("<value>\n"
            +<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">                </span>"<span
              style="mso-spacerun:yes">        </span><ref
xmlns:ri=\<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3\">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3\"</a>>ri:pager</ref>\n"
            +<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">                </span>"<span
              style="mso-spacerun:yes">        </span><outbound>\n"
            +<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">                </span>"<span
              style="mso-spacerun:yes">            </span><expression>\n"
            +<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">                </span>"<span
              style="mso-spacerun:yes">               
            </span><value>00-000-001</value>\n" +<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">                </span>"<span
              style="mso-spacerun:yes">               
            </span><value>00-000-003</value>\n" +<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">                </span>"<span
              style="mso-spacerun:yes">            </span></expression>\n"
            +<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">                </span>"<span
              style="mso-spacerun:yes">        </span></outbound>\n"
            +<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">                </span>"<span
              style="mso-spacerun:yes">    </span></value>"));<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><o:p> </o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">        </span>ObjectDeltaType
            deltaType = new
            ObjectDeltaType();<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">       
            </span>deltaType.setObjectType(ModelClientUtil.getTypeQName(RoleType.class));<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">       
            </span>deltaType.setChangeType(ChangeTypeType.MODIFY);<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">        </span>deltaType.setOid(roleOid);<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">        </span>deltaType.getItemDelta().add(inducementDelta);<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><o:p> </o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">        </span>ObjectDeltaListType
            deltaListType = new
            ObjectDeltaListType();<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">       
            </span>deltaListType.getDelta().add(deltaType);<o:p></o:p></span></small></p>
      <small>
      </small>
      <p class="MsoNoSpacing"><small><span
            style="font-family:"Courier New""><span
              style="mso-spacerun:yes">        </span>ObjectDeltaOperationListType
objectDeltaOperationList
            = modelPort.executeChanges(deltaListType, null);<o:p></o:p></span></small></p>
      <small></small><small><span style="font-family:"Courier
          New""><span style="mso-spacerun:yes">    </span>}<br>
          <br>
        </span></small>Best regards,<br>
      Pavol<br>
      <br>
      <small></small>
      <meta name="ProgId" content="Word.Document">
      <meta name="Generator" content="Microsoft Word 14">
      <meta name="Originator" content="Microsoft Word 14">
      <link rel="File-List"
href="file:///C:%5CUsers%5CPavol%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml">
      <!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:AllowPNG/>
 </o:OfficeDocumentSettings>
</xml><![endif]-->
      <link rel="themeData"
href="file:///C:%5CUsers%5CPavol%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx">
      <link rel="colorSchemeMapping"
href="file:///C:%5CUsers%5CPavol%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml">
      <!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Normal</w:View>
  <w:Zoom>0</w:Zoom>
  <w:TrackMoves/>
  <w:TrackFormatting/>
  <w:HyphenationZone>21</w:HyphenationZone>
  <w:PunctuationKerning/>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:DoNotPromoteQF/>
  <w:LidThemeOther>SK</w:LidThemeOther>
  <w:LidThemeAsian>X-NONE</w:LidThemeAsian>
  <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
   <w:SplitPgBreakAndParaMark/>
   <w:EnableOpenTypeKerning/>
   <w:DontFlipMirrorIndents/>
   <w:OverrideTableStyleHps/>
  </w:Compatibility>
  <m:mathPr>
   <m:mathFont m:val="Cambria Math"/>
   <m:brkBin m:val="before"/>
   <m:brkBinSub m:val="--"/>
   <m:smallFrac m:val="off"/>
   <m:dispDef/>
   <m:lMargin m:val="0"/>
   <m:rMargin m:val="0"/>
   <m:defJc m:val="centerGroup"/>
   <m:wrapIndent m:val="1440"/>
   <m:intLim m:val="subSup"/>
   <m:naryLim m:val="undOvr"/>
  </m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
  DefSemiHidden="true" DefQFormat="false" DefPriority="99"
  LatentStyleCount="267">
  <w:LsdException Locked="false" Priority="0" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
  <w:LsdException Locked="false" Priority="9" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 1"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 2"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 3"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 4"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 5"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 6"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 7"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 8"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 9"/>
  <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
  <w:LsdException Locked="false" Priority="10" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Title"/>
  <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
  <w:LsdException Locked="false" Priority="11" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
  <w:LsdException Locked="false" Priority="22" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
  <w:LsdException Locked="false" Priority="20" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
  <w:LsdException Locked="false" Priority="59" SemiHidden="false"
   UnhideWhenUsed="false" Name="Table Grid"/>
  <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
  <w:LsdException Locked="false" Priority="1" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
  <w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading"/>
  <w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List"/>
  <w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid"/>
  <w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1"/>
  <w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2"/>
  <w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1"/>
  <w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2"/>
  <w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1"/>
  <w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2"/>
  <w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3"/>
  <w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List"/>
  <w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading"/>
  <w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List"/>
  <w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid"/>
  <w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
  <w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 1"/>
  <w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
  <w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
  <w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
  <w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
  <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
  <w:LsdException Locked="false" Priority="34" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
  <w:LsdException Locked="false" Priority="29" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
  <w:LsdException Locked="false" Priority="30" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
  <w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
  <w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
  <w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
  <w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
  <w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 1"/>
  <w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
  <w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
  <w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
  <w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
  <w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 2"/>
  <w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
  <w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
  <w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
  <w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
  <w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
  <w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
  <w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
  <w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
  <w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 2"/>
  <w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
  <w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
  <w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
  <w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
  <w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 3"/>
  <w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
  <w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
  <w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
  <w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
  <w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
  <w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
  <w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
  <w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
  <w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 3"/>
  <w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
  <w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
  <w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
  <w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
  <w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 4"/>
  <w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
  <w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
  <w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
  <w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
  <w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
  <w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
  <w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
  <w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
  <w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 4"/>
  <w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
  <w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
  <w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
  <w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
  <w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 5"/>
  <w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
  <w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
  <w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
  <w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
  <w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
  <w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
  <w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
  <w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
  <w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 5"/>
  <w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
  <w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
  <w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
  <w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
  <w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 6"/>
  <w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
  <w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
  <w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
  <w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
  <w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
  <w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
  <w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
  <w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
  <w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 6"/>
  <w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
  <w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
  <w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
  <w:LsdException Locked="false" Priority="19" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
  <w:LsdException Locked="false" Priority="21" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
  <w:LsdException Locked="false" Priority="31" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
  <w:LsdException Locked="false" Priority="32" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
  <w:LsdException Locked="false" Priority="33" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
  <w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
  <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
 </w:LatentStyles>
</xml><![endif]-->
      <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;
        mso-font-charset:238;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:-536870145 1073786111 1 0 415 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-unhide:no;
        mso-style-qformat:yes;
        mso-style-parent:"";
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:10.0pt;
        margin-left:0cm;
        line-height:115%;
        mso-pagination:widow-orphan;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-ascii-font-family:Calibri;
        mso-ascii-theme-font:minor-latin;
        mso-fareast-font-family:Calibri;
        mso-fareast-theme-font:minor-latin;
        mso-hansi-font-family:Calibri;
        mso-hansi-theme-font:minor-latin;
        mso-bidi-font-family:"Times New Roman";
        mso-bidi-theme-font:minor-bidi;
        mso-fareast-language:EN-US;}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
        {mso-style-priority:1;
        mso-style-unhide:no;
        mso-style-qformat:yes;
        mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-ascii-font-family:Calibri;
        mso-ascii-theme-font:minor-latin;
        mso-fareast-font-family:Calibri;
        mso-fareast-theme-font:minor-latin;
        mso-hansi-font-family:Calibri;
        mso-hansi-theme-font:minor-latin;
        mso-bidi-font-family:"Times New Roman";
        mso-bidi-theme-font:minor-bidi;
        mso-fareast-language:EN-US;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-default-props:yes;
        font-family:"Calibri","sans-serif";
        mso-ascii-font-family:Calibri;
        mso-ascii-theme-font:minor-latin;
        mso-fareast-font-family:Calibri;
        mso-fareast-theme-font:minor-latin;
        mso-hansi-font-family:Calibri;
        mso-hansi-theme-font:minor-latin;
        mso-bidi-font-family:"Times New Roman";
        mso-bidi-theme-font:minor-bidi;
        mso-fareast-language:EN-US;}
.MsoPapDefault
        {mso-style-type:export-only;
        margin-bottom:10.0pt;
        line-height:115%;}
@page WordSection1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;}
div.WordSection1
        {page:WordSection1;}
-->
</style><!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-priority:99;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin-top:0cm;
        mso-para-margin-right:0cm;
        mso-para-margin-bottom:10.0pt;
        mso-para-margin-left:0cm;
        line-height:115%;
        mso-pagination:widow-orphan;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-ascii-font-family:Calibri;
        mso-ascii-theme-font:minor-latin;
        mso-hansi-font-family:Calibri;
        mso-hansi-theme-font:minor-latin;
        mso-fareast-language:EN-US;}
</style>
<![endif]--></div>
    <blockquote cite="mid:54DC80EF.2030803@evolveum.com" type="cite"><small>
      </small>
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      <div class="moz-cite-prefix">Hello Dharmendra,<br>
        <br>
        yes, I've not noticed that.<br>
        <br>
        In that case, there are two possibilities:<br>
        <br>
        (1) You can safely delete + recreate the inducement, as I
        proposed. It should work.<br>
        (2) You can modify the inducement itself. The XML code would
        look like this:<br>
        <br>
        <font size="-1"><tt><t:itemDelta></tt><tt><br>
          </tt><tt>    <t:modificationType><b><font
                color="#cc0000">add</font></b></t:modificationType></tt><tt><br>
          </tt><tt>    <t:path</tt><tt>><b><font color="#cc0000">inducement[2]/construction/attribute</font></b></t:path></tt><tt><br>
          </tt><tt>    <t:value></tt><tt><br>
          </tt><tt>        </tt><tt><ref</tt><tt> </tt><tt>xmlns:qn50=<a
              moz-do-not-send="true" class="moz-txt-link-rfc2396E"
              href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>>qn50:posixGroups</ref></tt><tt><br>
          </tt><tt>        <outbound></tt><tt><br>
          </tt><tt>            <expression></tt><tt><br>
          </tt><tt>               
            <value>cn=H2,ou=groups,dc=confluxsys,dc=com</value></tt><tt><br>
          </tt><tt>               
            <value>cn=SudoUserGroup_Pset2678,ou=groups,dc=confluxsys,dc=com</tt><tt></value></tt><tt><br>
          </tt><tt>               
            <value>cn=ads,ou=groups,dc=confluxsys,dc=com</value></tt><tt><br>
          </tt><tt>               
            <value>cn=dba,ou=groups,dc=confluxsys,dc=com</value></tt><tt><br>
          </tt><tt>               
            <value>cn=db2users,ou=groups,dc=confluxsys,dc=com</value></tt><tt><br>
          </tt><tt>               
            <value>cn=devSvnAccess,ou=groups,dc=confluxsys,dc=com</tt><tt></value></tt><tt><br>
          </tt><tt>            </expression></tt><tt><br>
          </tt><tt>        </outbound></tt><tt><br>
          </tt><tt>    </tt><tt></t:value></tt><tt><br>
          </tt><tt></t:itemDelta></tt><tt><br>
          </tt></font><br>
        Actually, I've never done something like this. But it should
        work.<br>
        (If not, please let me know.)<br>
        <br>
        Best regards,<br>
        Pavol<br>
        <br>
        <br>
      </div>
      <blockquote
cite="mid:CAJG9dDtmHCtv7-jhOtGpr1T=sY=u49GJO0o2KMSx_SaDqD=QeA@mail.gmail.com"
        type="cite">
        <div dir="ltr">Hi Pavol
          <div><br>
          </div>
          <div>I think here you are deleting the inducement itself but
            my goal was not to delete the resource inducement but modify
            some attributes of induced resource. </div>
          <div><br>
          </div>
          <div>Let me know if i am getting it incorrect.</div>
          <div><br>
          </div>
          <div>Thanks!</div>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Thu, Feb 12, 2015 at 3:23 PM,
            Pavol Mederly <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:mederly@evolveum.com" target="_blank">mederly@evolveum.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <div>Yes, of course.<br>
                  <br>
                  I've just pushed a modified model-client-sample
                  showing how to swap an inducement (with a known ID) in
                  the role definition.<br>
                  <br>
                  See this (red = removal code, green = addition code):<br>
                  <br>
                  <p><span>    </span>// removes inducement with a
                    given ID and replaces it with a new one</p>
                  <p><span>    </span>private static void
                    modifyRoleReplaceInducement(ModelPortType modelPort,
                    String roleOid, int oldId, String newInducementOid)
                    throws FaultMessage, IOException, SAXException {</p>
                  <p> </p>
                  <p><font color="#cc0000"><span>        </span>ItemDeltaType

                      inducementDeleteDelta = new ItemDeltaType();</font></p>
                  <font color="#cc0000"> </font>
                  <p><font color="#cc0000"><span>        </span>inducementDeleteDelta.setModificationType(ModificationTypeType.DELETE);</font></p>
                  <font color="#cc0000"> </font>
                  <p><font color="#cc0000"><span>        </span>inducementDeleteDelta.setPath(ModelClientUtil.createItemPathType("inducement"));</font></p>
                  <font color="#cc0000"> </font>
                  <p><font color="#cc0000"><span>        </span>inducementDeleteDelta.getValue().add(ModelClientUtil.parseElement("<value><id>"+oldId+"</id></value>"));</font></p>
                  <font color="#cc0000"> </font>
                  <p> </p>
                  <p><span> <font color="#009900">       </font></span><font
                      color="#009900">ItemDeltaType inducementAddDelta =
                      new ItemDeltaType();</font></p>
                  <font color="#009900"> </font>
                  <p><font color="#009900"><span>        </span>inducementAddDelta.setModificationType(ModificationTypeType.ADD);</font></p>
                  <font color="#009900"> </font>
                  <p><font color="#009900"><span>        </span>inducementAddDelta.setPath(ModelClientUtil.createItemPathType("inducement"));</font></p>
                  <font color="#009900"> </font>
                  <p><font color="#009900"><span>        </span>inducementAddDelta.getValue().add(createRoleAssignment(newInducementOid));</font></p>
                  <p> </p>
                  <p><span>        </span>ObjectDeltaType deltaType =
                    new ObjectDeltaType();</p>
                  <p><span>        </span>deltaType.setObjectType(ModelClientUtil.getTypeQName(RoleType.class));</p>
                  <p><span>        </span>deltaType.setChangeType(ChangeTypeType.MODIFY);</p>
                  <p><span>        </span>deltaType.setOid(roleOid);</p>
                  <p><span>        </span>deltaType.getItemDelta().add(inducementDeleteDelta);</p>
                  <p><span>        </span>deltaType.getItemDelta().add(inducementAddDelta);</p>
                  <p> </p>
                  <p><span>        </span>ObjectDeltaListType
                    deltaListType = new ObjectDeltaListType();</p>
                  <p><span>        </span>deltaListType.getDelta().add(deltaType);</p>
                  <p><span>        </span>ObjectDeltaOperationListType
                    objectDeltaOperationList =
                    modelPort.executeChanges(deltaListType, null);</p>
                  <span>    </span>} <br>
                  <br>
                  The corresponding XML is like this (again, red =
                  removal code, green = addition code):<br>
                  <br>
                      <soap:Body><br>
                          <ns8:executeChanges xmlns:ns10=<a
                    moz-do-not-send="true"
                    href="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"
                    target="_blank">"http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"</a>
                  xmlns:ns11=<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3"
                    target="_blank">"http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3"</a>
                  xmlns:ns12=<a moz-do-not-send="true"
                    href="http://www.w3.org/2000/09/xmldsig#"
                    target="_blank">"http://www.w3.org/2000/09/xmldsig#"</a>
                  xmlns:ns13=<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3"
                    target="_blank">"http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3"</a>
                  xmlns:ns14=<a moz-do-not-send="true"
                    href="http://www.w3.org/2001/04/xmlenc#"
                    target="_blank">"http://www.w3.org/2001/04/xmlenc#"</a>
                  xmlns:ns15=<a moz-do-not-send="true"
                    href="http://prism.evolveum.com/xml/ns/public/annotation-3"
                    target="_blank">"http://prism.evolveum.com/xml/ns/public/annotation-3"</a>
                  xmlns:ns16=<a moz-do-not-send="true"
                    href="http://midpoint.evolveum.com/xml/ns/public/common/fault-3"
                    target="_blank">"http://midpoint.evolveum.com/xml/ns/public/common/fault-3"</a>
                  xmlns:ns2=<a moz-do-not-send="true"
                    href="http://prism.evolveum.com/xml/ns/public/types-3"
                    target="_blank">"http://prism.evolveum.com/xml/ns/public/types-3"</a>
                  xmlns:ns3=<a moz-do-not-send="true"
                    href="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
                    target="_blank">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a>
                  xmlns:ns4=<a moz-do-not-send="true"
                    href="http://prism.evolveum.com/xml/ns/public/query-3"
                    target="_blank">"http://prism.evolveum.com/xml/ns/public/query-3"</a>
                  xmlns:ns5=<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
                    target="_blank">"http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"</a>
                  xmlns:ns6=<a moz-do-not-send="true"
                    href="http://midpoint.evolveum.com/xml/ns/model/workflow/common-forms-3"
                    target="_blank">"http://midpoint.evolveum.com/xml/ns/model/workflow/common-forms-3"</a>
                  xmlns:ns7=<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/model/workflow/process-instance-state-3"
                    target="_blank">"http://midpoint.evolveum.com/xml/ns/model/workflow/process-instance-state-3"</a>
                  xmlns:ns8=<a moz-do-not-send="true"
                    href="http://midpoint.evolveum.com/xml/ns/public/model/model-3"
                    target="_blank">"http://midpoint.evolveum.com/xml/ns/public/model/model-3"</a>
                  xmlns:ns9=<a moz-do-not-send="true"
                    href="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"
                    target="_blank">"http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"</a>><br>
                              <ns8:deltaList><br>
                                  <ns9:delta><br>
                                     
                  <ns2:changeType>modify</ns2:changeType><br>
                                     
                  <ns2:objectType>ns3:RoleType</ns2:objectType><br>
                                     
                  <ns2:oid>290acb64-f64c-4f01-8b5b-c5b745092f27</ns2:oid><br>
                  <font color="#cc0000">                   
                    <ns2:itemDelta><br>
                                           
                    <ns2:modificationType>delete</ns2:modificationType><br>
                                            <ns2:path>declare
                    default namespace '<a moz-do-not-send="true"
                      href="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
                      target="_blank">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>';


                    inducement</ns2:path><br>
                                            <ns2:value><br>
                                                <id>2</id><br>
                                            </ns2:value><br>
                                        </ns2:itemDelta><br>
                  </font>                    <font color="#009900"><ns2:itemDelta><br>
                                           
                    <ns2:modificationType>add</ns2:modificationType><br>
                                            <ns2:path>declare
                    default namespace '<a moz-do-not-send="true"
                      href="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
                      target="_blank">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>';


                    inducement</ns2:path><br>
                                            <ns2:value xmlns:xsi=<a
                      moz-do-not-send="true"
                      href="http://www.w3.org/2001/XMLSchema-instance"
                      target="_blank">"http://www.w3.org/2001/XMLSchema-instance"</a>
                    xsi:type="ns3:AssignmentType"><br>
                                                <ns3:targetRef
                    oid="12345678-d34d-b33f-f00d-987987cccccc"
                    type="ns3:RoleType"/><br>
                                            </ns2:value><br>
                                        </ns2:itemDelta></font><br>
                                  </ns9:delta><br>
                              </ns8:deltaList><br>
                          </ns8:executeChanges><br>
                      </soap:Body><br>
                  <br>
                  Best regards,<br>
                  Pavol<br>
                  <br>
                </div>
                <div>
                  <div class="h5">
                    <blockquote type="cite">
                      <div dir="ltr">Hi
                        <div><br>
                        </div>
                        <div>I got this point that i can add and delete
                          individual attribute/value but i want to know
                          how can i achieve with java code or can you
                          give me a sample xml doing this.</div>
                        <div><br>
                        </div>
                        <div>Regards</div>
                        <div>Dharmendra</div>
                      </div>
                      <div class="gmail_extra"><br>
                        <div class="gmail_quote">On Thu, Feb 12, 2015 at
                          1:53 PM, Pavol Mederly <span dir="ltr"><<a
                              moz-do-not-send="true"
                              href="mailto:mederly@evolveum.com"
                              target="_blank">mederly@evolveum.com</a>></span>
                          wrote:<br>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">
                            <div bgcolor="#FFFFFF" text="#000000">
                              <div>Hello Dharmendra,<span><br>
                                  <br>
                                  <blockquote type="cite">If the replace
                                    does not work how can i individually
                                    add/delete attributes/values ?</blockquote>
                                  <br>
                                </span> REPLACE replaces the whole
                                inducement, i.e. all of its values. <br>
                                <br>
                                If you want to replace just one value
                                (e.g. you have a values of A, B, C and
                                you want to make it A, B, D), you have
                                to do the following:<br>
                                - delete C<br>
                                - add D<br>
                                <br>
                                You can (and perhaps, should) do this in
                                one operation.<br>
                                <br>
                                Hope this helps.<span><font
                                    color="#888888"><br>
                                    Pavol</font></span>
                                <div>
                                  <div><br>
                                    <br>
                                    <br>
                                    On 12. 2. 2015 9:01, Dharmendra
                                    Parakh wrote:<br>
                                  </div>
                                </div>
                              </div>
                              <div>
                                <div>
                                  <blockquote type="cite">
                                    <div dir="ltr">HI Pavol
                                      <div><br>
                                      </div>
                                      <div>Quick Background: </div>
                                      <div>My role had two inducements: </div>
                                      <div>id=1: Role</div>
                                      <div>id=2 Resource</div>
                                      <div>I wanted to replace the
                                        resource inducement.</div>
                                      <div><br>
                                      </div>
                                      <div>As per my understanding i was
                                        trying to replace the inducement
                                        with id=2. and that does not
                                        means to delete the other
                                        inducement (like id=1).</div>
                                      <div><br>
                                      </div>
                                      <div>If the replace does not work
                                        how can i individually
                                        add/delete attributes/values ?</div>
                                      <div><br>
                                      </div>
                                      <div>Thanks</div>
                                      <div>Dharmendra</div>
                                      <div><br>
                                      </div>
                                    </div>
                                    <div class="gmail_extra"><br>
                                      <div class="gmail_quote">On Thu,
                                        Feb 12, 2015 at 1:22 PM, Pavol
                                        Mederly <span dir="ltr"><<a
                                            moz-do-not-send="true"
                                            href="mailto:mederly@evolveum.com"
                                            target="_blank">mederly@evolveum.com</a>></span>
                                        wrote:<br>
                                        <blockquote class="gmail_quote"
                                          style="margin:0 0 0
                                          .8ex;border-left:1px #ccc
                                          solid;padding-left:1ex">
                                          <div bgcolor="#FFFFFF"
                                            text="#000000">
                                            <div>Hello Dharmendra,<br>
                                              <br>
                                              looking at your WS
                                              request: it is of REPLACE
                                              type, see:<br>
                                              <br>
                                              <objectDelta ... ><br>
                                              ...        <br>
                                                 <t:itemDelta><br>
                                                   
                                              <t:modificationType><b>replace</b></t:modificationType><br>
                                                       <t:path>c:<b>inducement</b></t:path><br>
                                                       <t:value
                                              id="2"><br>
                                                           ...<br>
                                                       </t:value><br>
                                                 </t:itemDelta><br>
                                              ...<br>
                                              <br>
                                              So, basically you tell
                                              midPoint that you want to
                                              REPLACE the values of <b>inducement</b><b>
                                              </b>item with the ones you
                                              have provided.<br>
                                              And you've provided one
                                              value with id=2 and
                                              content of account
                                              construction on resource
                                              d0811790-1d80-11e4-86b2-3c970e467874.<br>
                                              So after the operation,
                                              the original inducement
                                              with id=1 should be gone.<br>
                                              <br>
                                              Is this what you wanted to
                                              do? Perhaps no.<br>
                                              <br>
                                              If you want to replace
                                              only one value in
                                              multi-valued item, you
                                              have to<br>
                                              1) delete old value<br>
                                              2) add new value<br>
                                              <br>
                                              And, I'm not quite sure
                                              about your first mail
                                              (Manish Baid, received
                                              01:14). Aren't the
                                              contents of files
                                              "original.xml" and
                                              "after_addRoleInducement.xml"
                                              swapped? Because
                                              original.xml corresponds
                                              to the state with only one
                                              inducement, while the file
                                              "after_addRoleInducement.xml"

                                              contains two inducements.
                                              Just opposite as I would
                                              expect, given the messages
                                              you wrote.<br>
                                              <br>
                                              Best regards,<br>
                                              Pavol
                                              <div>
                                                <div><br>
                                                  <br>
                                                  <br>
                                                  On 12. 2. 2015 8:39,
                                                  Dharmendra Parakh
                                                  wrote:<br>
                                                </div>
                                              </div>
                                            </div>
                                            <div>
                                              <div>
                                                <blockquote type="cite">
                                                  <div dir="ltr">Hi
                                                    Ivan 
                                                    <div><br>
                                                      <div>Thanks for
                                                        your reply. jira
                                                        you have pointed
                                                        is might be
                                                        related to UI
                                                        only and what i
                                                        observed is if i
                                                        use model web
                                                        service to
                                                        modify one
                                                        inducement it is
                                                        deleting other
                                                        inducements.</div>
                                                    </div>
                                                    <div><br>
                                                    </div>
                                                    <div>We are using
                                                      the master branch
                                                      so latest midpoint
                                                      version.</div>
                                                    <div><br>
                                                    </div>
                                                    <div>Regards</div>
                                                    <div>Dharmendra</div>
                                                  </div>
                                                  <div
                                                    class="gmail_extra"><br>
                                                    <div
                                                      class="gmail_quote">On

                                                      Thu, Feb 12, 2015
                                                      at 1:01 PM, Ivan
                                                      Noris <span
                                                        dir="ltr"><<a
moz-do-not-send="true" href="mailto:ivan.noris@evolveum.com"
                                                          target="_blank">ivan.noris@evolveum.com</a>></span>
                                                      wrote:<br>
                                                      <blockquote
                                                        class="gmail_quote"
                                                        style="margin:0
                                                        0 0
                                                        .8ex;border-left:1px
                                                        #ccc
                                                        solid;padding-left:1ex">
                                                        <div
                                                          bgcolor="#FFFFFF"
                                                          text="#000000">
                                                          Hi,<br>
                                                          <br>
                                                          I believe this
                                                          is the issue:
                                                          <a
                                                          moz-do-not-send="true"
href="https://jira.evolveum.com/browse/MID-2113" target="_blank">https://jira.evolveum.com/browse/MID-2113</a>
                                                          and it should
                                                          be fixed, but
                                                          please see the
                                                          comment in
                                                          JIRA.<br>
                                                          <br>
                                                          Also, what
                                                          version of
                                                          midPoint are
                                                          you using?<br>
                                                          <br>
                                                          Thanks,<br>
                                                          regards<br>
                                                          Ivan
                                                          <div>
                                                          <div><br>
                                                          <br>
                                                          <div>On
                                                          02/12/2015
                                                          08:08 AM,
                                                          Dharmendra
                                                          Parakh wrote:<br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          <blockquote
                                                          type="cite">
                                                          <div>
                                                          <div>
                                                          <div dir="ltr">Hi


                                                          Radovan
                                                          <div><br>
                                                          </div>
                                                          <div>Additional


                                                          Information:</div>
                                                          <div><br>
                                                          </div>
                                                          <div>We have a
                                                          requirement to
                                                          update the
                                                          role
                                                          inducement
                                                          from web
                                                          service
                                                          client, where
                                                          we have to
                                                          add/delete
                                                          some resource
                                                          attributes.</div>
                                                          <div><br>
                                                          </div>
                                                          <div>In our
                                                          scenario we
                                                          have a role
                                                          with multiple
                                                          inducements
                                                          (let say one
                                                          role and one
                                                          resource
                                                          inducement).
                                                          Now i want to
                                                          add some
                                                          additional
                                                          attribute-values
                                                          in resource
                                                          inducement. To
                                                          do this we
                                                          calculate the
                                                          correct
                                                          inducement
                                                          (AssignmentType)
                                                          object with
                                                          all current
                                                          attributes and
                                                          try to replace
                                                          this
                                                          inducement. </div>
                                                          <div>Earlier
                                                          this was
                                                          working for us
                                                          but now when
                                                          we do this
                                                          other
                                                          inducement
                                                          information is
                                                          lost (induced
                                                          role is no
                                                          longer
                                                          available in
                                                          role).</div>
                                                          <div><br>
                                                          </div>
                                                          <div>I am
                                                          attaching the
                                                          request xml
                                                          with the
                                                          mail...</div>
                                                          <div><br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>Regards</div>
                                                          <div>Dharmendra</div>
                                                          <div><br>
                                                          </div>
                                                          </div>
                                                          <div
                                                          class="gmail_extra"><br>
                                                          <div
                                                          class="gmail_quote">On


                                                          Thu, Feb 12,
                                                          2015 at 12:03
                                                          PM, Manish
                                                          Baid <span
                                                          dir="ltr"><<a
moz-do-not-send="true" href="mailto:baid_manish@yahoo.com"
                                                          target="_blank">baid_manish@yahoo.com</a>></span>
                                                          wrote:<br>
                                                          <blockquote
                                                          class="gmail_quote"
                                                          style="margin:0

                                                          0 0
                                                          .8ex;border-left:1px
                                                          #ccc
                                                          solid;padding-left:1ex">
                                                          <div>
                                                          <div
                                                          style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica

Neue,Helvetica,Arial,Lucida
Grande,sans-serif;font-size:14px">
                                                          <div>Hi
                                                          Radovan,</div>
                                                          <div dir="ltr">We


                                                          are showing a
                                                          demo to our
                                                          clients, looks
                                                          like with
                                                          recent 3.1
                                                          release,
                                                          inducement
                                                          update is
                                                          behaving
                                                          differently.</div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr">If


                                                          you can work
                                                          with
                                                          Dharmendra to
                                                          work through
                                                          this (he is in
                                                          India
                                                          timezone, will
                                                          be available
                                                          in your
                                                          mornings), it
                                                          would be of
                                                          great help.</div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr">Thanks<br>
                                                          </div>
                                                          <div>
                                                          <div>
                                                          <div><span></span></div>
                                                          <br>
                                                          <div
                                                          style="font-family:HelveticaNeue,Helvetica
Neue,Helvetica,Arial,Lucida
Grande,sans-serif;font-size:14px">
                                                          <div
                                                          style="font-family:HelveticaNeue,Helvetica
Neue,Helvetica,Arial,Lucida
Grande,sans-serif;font-size:16px">
                                                          <div dir="ltr">
                                                          -----
                                                          Forwarded
                                                          Message -----<br>
                                                          <font
                                                          face="Arial">
                                                          <b><span
                                                          style="font-weight:bold">From:</span></b>
                                                          Manish Baid
                                                          <<a
                                                          moz-do-not-send="true"
href="mailto:baid_manish@yahoo.com" target="_blank">baid_manish@yahoo.com</a>><br>
                                                          <b><span
                                                          style="font-weight:bold">To:</span></b>
                                                          midPoint
                                                          General
                                                          Discussion
                                                          <<a
                                                          moz-do-not-send="true"
href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>>





                                                          <br>
                                                          <b><span
                                                          style="font-weight:bold">Cc:</span></b>
                                                          Dharmendra
                                                          Parakh <<a
moz-do-not-send="true" href="mailto:dharmendra@confluxsys.com"
                                                          target="_blank">dharmendra@confluxsys.com</a>>;





                                                          Indrajit
                                                          Chauhan <<a
moz-do-not-send="true" href="mailto:indrajit@confluxsys.com"
                                                          target="_blank">indrajit@confluxsys.com</a>>





                                                          <br>
                                                          <b><span
                                                          style="font-weight:bold">Sent:</span></b>
                                                          Wednesday,
                                                          February 11,
                                                          2015 4:14 PM<br>
                                                          <b><span
                                                          style="font-weight:bold">Subject:</span></b>
                                                          URGENT ...
                                                          Role
                                                          inducements
                                                          lost on role
                                                          updates<br>
                                                          </font> </div>
                                                          <div><br>
                                                          <div>
                                                          <div>
                                                          <div
                                                          style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica

Neue,Helvetica,Arial,Lucida
Grande,sans-serif;font-size:14px">
                                                          <div dir="ltr">Hi,</div>
                                                          <div dir="ltr">With



                                                          3.1 release
                                                          code (and also
                                                          after
                                                          MID-2194),
                                                          when
                                                          inducement/s
                                                          is/are updated
                                                          in a role,
                                                          other related
                                                          indcuments are
                                                          removed.</div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr">Here



                                                          is an example:</div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr">*
                                                          Role had an
                                                          indcument:
                                                          "LDAP Account"
                                                          with 3 group
                                                          memberships</div>
                                                          <div dir="ltr">*
                                                          Role is
                                                          modified to
                                                          add a role
                                                          inducement
                                                          (role
                                                          hierarchy) </div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr">Observation:




                                                          3 group
                                                          memberships
                                                          that were part
                                                          of "Ldap
                                                          Account"
                                                          inducments are
                                                          removed. <br>
                                                          </div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr">Please



                                                          see object
                                                          XMLs of before
                                                          and after.</div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr">Thanks<br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          <br>
                                                          <br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                          <br>
                                                          </div>
                                                          <br>
                                                          <fieldset></fieldset>
                                                          <br>
                                                          </div>
                                                          </div>
                                                          <pre>_______________________________________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><span><font color="#888888">
</font></span></pre>
                                                          <span><font
                                                          color="#888888">
                                                          </font></span></blockquote>
                                                          <span><font
                                                          color="#888888">
                                                          <br>
                                                          <pre cols="72">-- 
  Ing. Ivan Noris
  Senior Identity Management Engineer
  <a moz-do-not-send="true" href="http://evolveum.com" target="_blank">evolveum.com</a>     <a moz-do-not-send="true" href="http://evolveum.com/blog/" target="_blank">evolveum.com/blog/</a>
  _____________________________________________
  "Semper Id(e)M Vix."
</pre>
                                                          </font></span></div>
                                                        <br>
_______________________________________________<br>
                                                        midPoint mailing
                                                        list<br>
                                                        <a
                                                          moz-do-not-send="true"
href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
                                                        <a
                                                          moz-do-not-send="true"
href="http://lists.evolveum.com/mailman/listinfo/midpoint"
                                                          target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
                                                        <br>
                                                      </blockquote>
                                                    </div>
                                                    <br>
                                                  </div>
                                                  <br>
                                                  <fieldset></fieldset>
                                                  <br>
                                                  <pre>_______________________________________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
                                                </blockquote>
                                                <br>
                                              </div>
                                            </div>
                                          </div>
                                          <br>
_______________________________________________<br>
                                          midPoint mailing list<br>
                                          <a moz-do-not-send="true"
                                            href="mailto:midPoint@lists.evolveum.com"
                                            target="_blank">midPoint@lists.evolveum.com</a><br>
                                          <a moz-do-not-send="true"
                                            href="http://lists.evolveum.com/mailman/listinfo/midpoint"
                                            target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
                                          <br>
                                        </blockquote>
                                      </div>
                                      <br>
                                    </div>
                                    <br>
                                    <fieldset></fieldset>
                                    <br>
                                    <pre>_______________________________________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
                                  </blockquote>
                                  <br>
                                </div>
                              </div>
                            </div>
                            <br>
_______________________________________________<br>
                            midPoint mailing list<br>
                            <a moz-do-not-send="true"
                              href="mailto:midPoint@lists.evolveum.com"
                              target="_blank">midPoint@lists.evolveum.com</a><br>
                            <a moz-do-not-send="true"
                              href="http://lists.evolveum.com/mailman/listinfo/midpoint"
                              target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
                            <br>
                          </blockquote>
                        </div>
                        <br>
                      </div>
                      <br>
                      <fieldset></fieldset>
                      <br>
                      <pre>_______________________________________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
                    </blockquote>
                    <br>
                  </div>
                </div>
              </div>
              <br>
              _______________________________________________<br>
              midPoint mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
              <a moz-do-not-send="true"
                href="http://lists.evolveum.com/mailman/listinfo/midpoint"
                target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
              <br>
            </blockquote>
          </div>
          <br>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
midPoint mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>