<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="GENERATOR" content="GtkHTML/4.6.6">
</head>
<body>
Hi,<br>
<br>
I have two question:<br>
1) How can I remove attribute value? I want set value only if contains some substring.<br>
...<br>
<inbound><br>
<strength>strong</strength><br>
<source><br>
<path>$account/attributes/job_title</path><br>
</source><br>
<expression><br>
<script><br>
<language><a href="http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy<">http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy<</a>/language><br>
<code><br>
String str = 'aaaa';<br>
String value = job_title;<br>
if(value.length() > 0 && value.contains(str)){<br>
return value;<br>
}<br>
//return '';<br>
//return null;<br>
</code><br>
</script><br>
</expression> <br>
<target><br>
<path>$user/extension/jobTitle</path><br>
</target><br>
</inbound><br>
...<br>
<br>
2) Can I get in notification old value? I get new value with<br>
...<br>
INTERNSHIP_NAME = 'internship';<br>
String internship = basic.getExtensionPropertyValue(requestee, '', INTERNSHIP_NAME).toString();<br>
...<br>
<br>
Thanks,<br>
MiSo
</body>
</html>