<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Serge,</p>
<p>can you specify exact file/sample where this was?</p>
<p>I have not used direct account assignment, but just roles, in the
object template, but I can see this:</p>
<p>samples/demo/user-template.xml</p>
<p> <mapping><br>
<description>A hack to avoid feedback to HR feed -
deleting accounts because they are not
assigned</description><br>
<strength>strong</strength><br>
<source><br>
<path>employeeType</path><br>
</source><br>
<expression><br>
<value><br>
<!--<assignment>--><br>
<construction><br>
<resourceRef
oid="8844dcca-775d-11e2-a0ac-001e8c717e5b"
type="c:ResourceType"/><br>
</construction><br>
<!--</assignment>--><br>
</value> <br>
</expression><br>
<target><br>
<path>assignment</path><br>
</target><br>
<condition><br>
<script><br>
<code>employeeType != null</code><br>
</script><br>
</condition><br>
</mapping><br>
</p>
<p>See how the <assignment> element is commented out; hope
this is the problem.</p>
<p>If you specify the sample from which you have seen the original
construction, we can have a look at it.</p>
<p>Best regards,</p>
<p>Ivan<br>
</p>
<br>
<div class="moz-cite-prefix">On 08.11.2017 12:43, HAQUET Serge
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5049a0afd7c64bc3812b020bc6571961@cirb.brussels">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:2013486836;
mso-list-type:hybrid;
mso-list-template-ids:59530782 135004161 135004163 135004165 135004161 135004163 135004165 135004161 135004163 135004165;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">I get this example from
midpoint git and it didn’t work , look like missing
something to validate the xml<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><mapping><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
<strength>strong</strength><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
<expression><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
<value><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
<assignment><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
<construction><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
<resourceRef oid="0e70c40e-d952-45ee-9780-10845afdc126"
type="ResourceType"/><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
</construction><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
</assignment><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
</value> <o:p>
</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </expression><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <target><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
<path>assignment</path><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </target><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </mapping><o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US">Midpoint version :</span></b><span
lang="EN-US"> 3.6<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US">Goal :</span></b><span
lang="EN-US"> when create new user , create a new account an
link it base on the some resources<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US">Actions:<o:p></o:p></span></b></p>
<ul style="margin-top:0cm" type="disc">
<li class="MsoListParagraph"
style="margin-left:0cm;mso-list:l0 level1 lfo1"><span
lang="EN-US">using the Complex User Template , from the
midpoint git.<o:p></o:p></span></li>
<li class="MsoListParagraph"
style="margin-left:0cm;mso-list:l0 level1 lfo1"><span
lang="EN-US">only use the account create part.<o:p></o:p></span></li>
<li class="MsoListParagraph"
style="margin-left:0cm;mso-list:l0 level1 lfo1"><span
lang="EN-US">import the file in midpoint<o:p></o:p></span></li>
<li class="MsoListParagraph"
style="margin-left:0cm;mso-list:l0 level1 lfo1"><span
lang="EN-US">create new user<o:p></o:p></span></li>
</ul>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><b><span
lang="EN-US">Error (see file)</span></b><span lang="EN-US">
:
</span><span
style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;mso-fareast-language:FR-BE"
lang="EN-US">Message<b><o:p></o:p></b></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;background:white"><span
style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;mso-fareast-language:FR-BE"
lang="EN-US">Item
{<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>}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: 0e70c40e-d952-45ee-9780-10845afdc126)
type => parser ValueParser(DOMa, type: ResourceType) ) )
) )<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;mso-fareast-language:FR-BE"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><b><span
style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;mso-fareast-language:FR-BE"
lang="EN-US">When
</span></b><span
style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;mso-fareast-language:FR-BE"
lang="EN-US">: trying to create user<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;mso-fareast-language:FR-BE"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;mso-fareast-language:FR-BE"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;mso-fareast-language:FR-BE"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div link="#005dba" vlink="#6c606a" lang="FR-BE">
<div class="WordSection1">
<table border="0">
<tbody>
<tr>
<td style="BORDER-RIGHT: #fecb00 thin solid; WIDTH: 40%"
valign="top"> <img
src="cid:part1.96667D30.90D3982F@evolveum.com"
class="" border="0">
</td>
<td style="WIDTH: 60%" valign="top">
<p style="FONT-SIZE: 10pt; FONT-FAMILY: Arial;
LINE-HEIGHT: normal"><span class="TitreCar"><b><span
style="FONT-SIZE: 15pt; FONT-FAMILY: 'Calibri
Light','sans-serif'; COLOR: #0080bf"
lang="EN-US">Serge HAQUET</span></b></span><br>
<span class="MsoSubtleReference"><span
style="FONT-FAMILY: 'Calibri
Light','sans-serif'; COLOR: #0a00be"
lang="EN-US">Project Analyst</span></span><br>
<span style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri
Light','sans-serif'; COLOR: #164397" lang="EN-US">Operations
<span style="FONT-SIZE: 11pt; FONT-FAMILY:
'Calibri Light'; COLOR: #164397"></span>-
Project Analyst</span><br>
<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Calibri
Light','sans-serif'" lang="EN-US">Avenue des Arts
21, 1000 Bruxelles -
</span><span style="FONT-FAMILY: 'Calibri
Light','sans-serif'; COLOR: #0080bf" lang="EN-US"><a
href="http://cirb.brussels/"
moz-do-not-send="true"><span style="FONT-SIZE:
10pt; COLOR: #0080bf">cirb.brussels</span></a></span><span
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Calibri
Light','sans-serif'" lang="EN-US"> - </span><span
style="FONT-FAMILY: 'Calibri Light','sans-serif';
COLOR: #0080bf" lang="EN-US"><a
href="http://cirb.brussels/disclaimer-1"
moz-do-not-send="true"><span style="FONT-SIZE:
10pt; COLOR: #0080bf">disclaimer</span></a></span><span
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Calibri
Light','sans-serif'" lang="EN-US"><br>
T +32 2 801 12 41 <span style="COLOR: #fecb00">|
</span><span style="FONT-SIZE: 10pt; FONT-FAMILY:
'Calibri Light', 'sans-serif'"><span
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Calibri
Light'">G</span> +32 497 44 44 99
<span style="COLOR: #fecb00">| </span>Helpdesk
+32 2 801 00 00 </span></span><br>
<span style="FONT-SIZE: 9pt; FONT-FAMILY: 'Calibri
Light','sans-serif'; COLOR: #61c250" lang="EN-US">Be
green, leave it on the screen !</span> <a
class="socialLink"
href="https://www.linkedin.com/company/cirb_cibg"
moz-do-not-send="true"><img class="socialLink"
style="HEIGHT: 25px; WIDTH: 25px"
src="cid:part4.668B1ECE.F212C0EC@evolveum.com"
border="0"></a> <a class="socialLink"
href="https://twitter.com/CIRB_CIBG"
moz-do-not-send="true"><img class="socialLink"
style="HEIGHT: 25px; WIDTH: 25px"
src="cid:part6.3D857B10.302EA304@evolveum.com"
border="0"></a> <a
href="http://www.environnement.brussels/thematiques/ville-durable/le-label-entreprise-ecodynamique"
moz-do-not-send="true"><img
src="cid:part8.B1E109B1.02AE4098@evolveum.com"
class="" border="0"></a></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<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>
<pre class="moz-signature" cols="72">--
Ivan Noris
Senior Identity Engineer
evolveum.com
</pre>
</body>
</html>