<div dir="ltr">I was trying to add a condition to the synchronization element,<div><br></div><div>Here is what I got, there is a column in the table level_ , I only want to sync users that have those specific values</div><div><br></div><div><div><span class="" style="white-space:pre">                             </span><condition></div><div><span class="" style="white-space:pre">                                  </span><script></div><div><span class="" style="white-space:pre">                                             </span><code></div><div><span class="" style="white-space:pre">                                                       </span>basic.getAttributeValue(shadow, '<a href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3">http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3</a>', 'level_') = (2 || 3 || 4 || 5 || A || B || C || H)</div><div><span class="" style="white-space:pre">                                                </span></code></div><div><span class="" style="white-space:pre">                                      </span></script></div><div><span class="" style="white-space:pre">                            </span></condition></div></div><div><br></div><div>When it runs I get the following</div><div><br></div><div><div>1 error</div><div> (new) condition in object synchronization null</div><div><span class="" style="white-space:pre">    </span>at com.evolveum.midpoint.model.common.expression.script.jsr223.Jsr223ScriptEvaluator.createCompiledScript(Jsr223ScriptEvaluator.java:176) ~[model-common-3.0.1.jar:na]</div><div><span class="" style="white-space:pre">     </span>at com.evolveum.midpoint.model.common.expression.script.jsr223.Jsr223ScriptEvaluator.evaluate(Jsr223ScriptEvaluator.java:117) ~[model-common-3.0.1.jar:na]</div><div><span class="" style="white-space:pre"> </span>at com.evolveum.midpoint.model.common.expression.script.ScriptExpression.evaluate(ScriptExpression.java:110) ~[model-common-3.0.1.jar:na]</div><div><span class="" style="white-space:pre">  </span>at com.evolveum.midpoint.model.common.expression.script.ScriptExpressionEvaluator.transformSingleValue(ScriptExpressionEvaluator.java:58) ~[model-common-3.0.1.jar:na]</div><div><span class="" style="white-space:pre">     </span>at com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator.evaluateScriptExpression(AbstractValueTransformationExpressionEvaluator.java:276) ~[model-common-3.0.1.jar:na]</div><div><span class="" style="white-space:pre">   </span>at com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator.evaluateAbsoluteExpression(AbstractValueTransformationExpressionEvaluator.java:206) ~[model-common-3.0.1.jar:na]</div><div><span class="" style="white-space:pre"> </span>at com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator.evaluate(AbstractValueTransformationExpressionEvaluator.java:107) ~[model-common-3.0.1.jar:na]</div><div><span class="" style="white-space:pre">   </span>at com.evolveum.midpoint.model.common.expression.Expression.evaluate(Expression.java:136) ~[model-common-3.0.1.jar:na]</div><div><span class="" style="white-space:pre">     </span>at com.evolveum.midpoint.model.common.expression.ExpressionUtil.evaluateExpression(ExpressionUtil.java:500) ~[model-common-3.0.1.jar:na]</div><div><span class="" style="white-space:pre">   </span>at com.evolveum.midpoint.model.common.expression.ExpressionUtil.evaluateCondition(ExpressionUtil.java:523) ~[model-common-3.0.1.jar:na]</div><div><span class="" style="white-space:pre">    </span>at com.evolveum.midpoint.model.impl.sync.SynchronizationService.isPolicyApplicable(SynchronizationService.java:383) ~[model-impl-3.0.1.jar:na]</div><div><span class="" style="white-space:pre">     </span>at com.evolveum.midpoint.model.impl.sync.SynchronizationService.determineSynchronizationPolicy(SynchronizationService.java:343) ~[model-impl-3.0.1.jar:na]</div><div><span class="" style="white-space:pre"> </span>at com.evolveum.midpoint.model.impl.sync.SynchronizationService.notifyChange_aroundBody0(SynchronizationService.java:205) ~[model-impl-3.0.1.jar:na]</div><div><span class="" style="white-space:pre">       </span>... 54 common frames omitted</div><div>Caused by: javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:</div><div>Script37.groovy: 2: </div><div>"basic.getAttributeValue(shadow, <a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>, level_)" is a method call expression, but it should be a variable expression at line: 2 column: 116. File: Script37.groovy @ line 2, column 116.</div><div>   source/instance-3', 'level_') = (2 || 3 </div></div></div>

<br>
<font size="2"><br><br>CONFIDENTIALITY NOTICE:<br>This e-mail together with any attachments is proprietary and confidential; intended for only the recipient(s) named above and may contain information that is privileged. You should not retain, copy or use this e-mail or any attachments for any purpose, or disclose all or any part of the contents to any person. Any views or opinions expressed in this e-mail are those of the author and do not represent those of the Baptist School of Health Professions. If you have received this e-mail in error, or are not the named recipient(s), you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited by the sender and to do so might constitute a violation of the Electronic Communications Privacy Act, 18 U.S.C. section 2510-2521. Please immediately notify the sender and delete this e-mail and any attachments from your computer. </font><br>