<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1487755132568_17297">I configured two resources; one inbound and second both-ways.  For the inbound resource, configured unmatched situation to add user with the following template:</div><div id="yui_3_16_0_ym19_1_1487755132568_17297"><br></div><div id="yui_3_16_0_ym19_1_1487755132568_17511">   <mapping></div><div id="yui_3_16_0_ym19_1_1487755132568_17512">      <description></div><div id="yui_3_16_0_ym19_1_1487755132568_17513">                Property mapping.</div><div id="yui_3_16_0_ym19_1_1487755132568_17514">                Defines how properties of user object are set up.</div><div id="yui_3_16_0_ym19_1_1487755132568_17515">                This specific definition sets a full name as a concatenation</div><div id="yui_3_16_0_ym19_1_1487755132568_17516">                of givenName and familyName.</div><div id="yui_3_16_0_ym19_1_1487755132568_17517"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1487755132568_17518">                   </span></description></div><div id="yui_3_16_0_ym19_1_1487755132568_17519">      <strength>weak</strength></div><div id="yui_3_16_0_ym19_1_1487755132568_17520">      <source></div><div id="yui_3_16_0_ym19_1_1487755132568_17521">         <c:path>$user/givenName</c:path></div><div id="yui_3_16_0_ym19_1_1487755132568_17522">      </source></div><div id="yui_3_16_0_ym19_1_1487755132568_17523">      <source></div><div id="yui_3_16_0_ym19_1_1487755132568_17524">         <c:path>$user/familyName</c:path></div><div id="yui_3_16_0_ym19_1_1487755132568_17525">      </source></div><div id="yui_3_16_0_ym19_1_1487755132568_17526">      <expression></div><div id="yui_3_16_0_ym19_1_1487755132568_17527">         <script></div><div id="yui_3_16_0_ym19_1_1487755132568_17528">            <language>http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy</language></div><div id="yui_3_16_0_ym19_1_1487755132568_17529">            <code></div><div id="yui_3_16_0_ym19_1_1487755132568_17530"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1487755132568_17531">                    </span>givenName + ' ' + familyName</div><div id="yui_3_16_0_ym19_1_1487755132568_17530"><span id="yui_3_16_0_ym19_1_1487755132568_17533" style="white-space: pre-wrap;">     </span></code></div><div id="yui_3_16_0_ym19_1_1487755132568_17534">         </script></div><div id="yui_3_16_0_ym19_1_1487755132568_17535">      </expression></div><div id="yui_3_16_0_ym19_1_1487755132568_17536">      <target></div><div id="yui_3_16_0_ym19_1_1487755132568_17537">         <c:path>fullName</c:path></div><div id="yui_3_16_0_ym19_1_1487755132568_17538">      </target></div><div id="yui_3_16_0_ym19_1_1487755132568_17539">   </mapping></div><div id="yui_3_16_0_ym19_1_1487755132568_17540">   <mapping></div><div id="yui_3_16_0_ym19_1_1487755132568_17541">      <name>Default Role</name></div><div id="yui_3_16_0_ym19_1_1487755132568_17542">      <strength>strong</strength></div><div id="yui_3_16_0_ym19_1_1487755132568_17543">      <expression></div><div id="yui_3_16_0_ym19_1_1487755132568_17544">         <assignmentTargetSearch></div><div id="yui_3_16_0_ym19_1_1487755132568_17545">            <targetType>c:RoleType</targetType></div><div id="yui_3_16_0_ym19_1_1487755132568_17546">            <oid>00000000-0000-0000-0000-000000000008</oid></div><div id="yui_3_16_0_ym19_1_1487755132568_17547">         </assignmentTargetSearch></div><div id="yui_3_16_0_ym19_1_1487755132568_17548">      </expression></div><div id="yui_3_16_0_ym19_1_1487755132568_17549">      <target></div><div id="yui_3_16_0_ym19_1_1487755132568_17550">         <c:path>assignment</c:path></div><div id="yui_3_16_0_ym19_1_1487755132568_17551">      </target></div><div id="yui_3_16_0_ym19_1_1487755132568_17552">   </mapping></div><div id="yui_3_16_0_ym19_1_1487755132568_17553">   <mapping></div><div id="yui_3_16_0_ym19_1_1487755132568_17554">      <name>Default Resource</name></div><div id="yui_3_16_0_ym19_1_1487755132568_17555">      <strength>strong</strength></div><div id="yui_3_16_0_ym19_1_1487755132568_17556">      <expression></div><div id="yui_3_16_0_ym19_1_1487755132568_17557">         <assignmentTargetSearch></div><div id="yui_3_16_0_ym19_1_1487755132568_17558">            <targetType>c:ResourceType</targetType></div><div id="yui_3_16_0_ym19_1_1487755132568_17559">            <oid>ef2bc95b-76e0-48e2-86d6-3d4f02d3eeee</oid></div><div id="yui_3_16_0_ym19_1_1487755132568_17560">         </assignmentTargetSearch></div><div id="yui_3_16_0_ym19_1_1487755132568_17561">      </expression></div><div id="yui_3_16_0_ym19_1_1487755132568_17562">      <target></div><div id="yui_3_16_0_ym19_1_1487755132568_17563">         <c:path>assignment</c:path></div><div id="yui_3_16_0_ym19_1_1487755132568_17564">      </target></div><div dir="ltr" id="yui_3_16_0_ym19_1_1487755132568_17565">   </mapping></div><div dir="ltr" id="yui_3_16_0_ym19_1_1487755132568_17565"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1487755132568_17565"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1487755132568_17565">My intention was to assign the above role and resource to the new user imported.  It is failing to add the resource with the cause: Caused by: java.lang.ClassCastException: com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType cannot be cast to com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType</div><div dir="ltr" id="yui_3_16_0_ym19_1_1487755132568_17666"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1487755132568_17667">       </span>at com.evolveum.midpoint.model.impl.lens.AssignmentEvaluator.evaluateAssignmentWithResolvedTarget(AssignmentEvaluator.java:368) ~[model-impl-3.5.jar:na]</div><div dir="ltr" id="yui_3_16_0_ym19_1_1487755132568_17666"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1487755132568_17666"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1487755132568_17666">When I tried with the following mapping to assign the resource:</div><pre style="font-family: Menlo; font-size: 9pt;" id="yui_3_16_0_ym19_1_1487755132568_17861">  <span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17862"><</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17863">mapping</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17864">></span><br id="yui_3_16_0_ym19_1_1487755132568_17865"><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17866">       <</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17867">strength</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17868">></span>strong<span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17869"></</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17870">strength</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17871">></span><br id="yui_3_16_0_ym19_1_1487755132568_17872">       <span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17873"><</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17874">expression</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17875">></span><br id="yui_3_16_0_ym19_1_1487755132568_17876">          <span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17877"><</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17878">value</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17879">></span><br id="yui_3_16_0_ym19_1_1487755132568_17880">           <span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17881"><</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17882">assignment</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17883">></span><br id="yui_3_16_0_ym19_1_1487755132568_17884">               <span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17885"><</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17886">construction</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17887">></span><br id="yui_3_16_0_ym19_1_1487755132568_17888">                    <span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17889"><</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17890">resourceRef </span><span style="color:#0000ff;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17891">oid=</span><span style="color:#008000;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17892">"ef2bc95b-76e0-48e2-86d6-3d4f02d3eeee" </span><span style="color:#0000ff;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17893">type=</span><span style="color:#008000;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17894">"ResourceType"</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17895">/></span><br id="yui_3_16_0_ym19_1_1487755132568_17896">               <span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17897"></</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17898">construction</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17899">></span><br id="yui_3_16_0_ym19_1_1487755132568_17900">          <span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17901"></</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17902">assignment</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17903">></span><br id="yui_3_16_0_ym19_1_1487755132568_17904">         <span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17905"></</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17906">value</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17907">></span>     <br id="yui_3_16_0_ym19_1_1487755132568_17908">   <span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17909"></</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17910">expression</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17911">></span><br id="yui_3_16_0_ym19_1_1487755132568_17912">   <span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17913"><</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17914">target</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17915">></span><br id="yui_3_16_0_ym19_1_1487755132568_17916">    <span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17917"><</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17918">path</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17919">></span>assignment<span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17920"></</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17921">path</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17922">></span><br id="yui_3_16_0_ym19_1_1487755132568_17923">   <span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17924"></</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17925">target</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17926">></span><br id="yui_3_16_0_ym19_1_1487755132568_17927">  <span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17928"></</span><span style="color:#000080;background-color:#efefef;font-weight:bold;" id="yui_3_16_0_ym19_1_1487755132568_17929">mapping</span><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_17930">></span></pre><pre style="font-family: Menlo; font-size: 9pt;" id="yui_3_16_0_ym19_1_1487755132568_17861"><span style="background-color:#efefef;" id="yui_3_16_0_ym19_1_1487755132568_18323">I get the following exception:</span></pre><pre style="font-family: Menlo; font-size: 9pt;" id="yui_3_16_0_ym19_1_1487755132568_17861"><span style="background-color:#efefef;"><br></span></pre><pre id="yui_3_16_0_ym19_1_1487755132568_17861"><span style="background-color: rgb(239, 239, 239);" id="yui_3_16_0_ym19_1_1487755132568_18388"><font face="Menlo" id="yui_3_16_0_ym19_1_1487755132568_18385"><span style="font-size: 12px;" id="yui_3_16_0_ym19_1_1487755132568_18386">2017-02-22 06:31:17,086 [] [midPointScheduler_Worker-6] ERROR (com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeResultHandler): Import of object shadow:07c95824-ee5f-40b1-abba-1935c578b632(************) from resource:ef2bc95b-76e0-48e2-86d6-3d4f02d3ffff(Demo CAS DBTable) failed: Item {http://midpoint.evolveum.com/xml/ns/public/common/common-3}assignment has no definition (in container value CTD ({.../common/common-3}AssignmentType))while parsing (
  {...common/common-3}assignment =>
    (
      {...common/common-3}construction =>
        (
          {...common/common-3}resourceRef =>
            (
              oid =>
                parser ValueParser(DOMa, oid: ef2bc95b-76e0-48e2-86d6-3d4f02d3eeee)
              type =>
                parser ValueParser(DOMa, type: ResourceType)
            )
        )
    )
)</span><span style="font-size: 9pt;" id="yui_3_16_0_ym19_1_1487755132568_18387"><br></span></font></span></pre><pre id="yui_3_16_0_ym19_1_1487755132568_17861">Please help me know the mistake i am doing.</pre><pre id="yui_3_16_0_ym19_1_1487755132568_17861">Thanks,</pre><pre id="yui_3_16_0_ym19_1_1487755132568_17861">Prabhakar.</pre></div></body></html>