<html><body><div>Hi,</div><div><br></div><div>I am trying to create condition for Org assignement. Basicaly user type have to be a Contractor and must be enabled.</div><div>Problem with this cone is an AND operator (&&). with this i cannot save the code. I am missing point. In other mappings i am using OR and it works.</div><div><br></div><div>See code bellow:</div><div> </div><div> <mapping id="8"></div><div> <name>My Object Template: test assign orgs</name></div><div> <authoritative>false</authoritative></div><div> <strength>strong</strength></div><div> <source></div><div> <c:path>employeeType</c:path></div><div> </source></div><div> <source></div><div> <c:path>activation/effectiveStatus</c:path></div><div> </source></div><div> <expression></div><div> <value></div><div> <targetRef oid="bc5ee415-e570-44b3-a676-daee0aa7ab0e" type="OrgType"/></div><div> </value></div><div> </expression></div><div> <target></div><div> <c:path>assignment</c:path></div><div> </target></div><div> <condition></div><div> <script xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</div><div> xsi:type="c:ScriptExpressionEvaluatorType"></div><div> <code></div><div> def tmpStatus = basic.norm(basic.stringify(effectiveStatus))?.toString();</div><div> log.info ("ORGANIZATION ASSIGNEMENT User Status = " + tmpStatus);</div><div><span style="white-space:pre"> </span> tmpStatus == 'enabled' && employeeType == 'Contractor'</div><div> </code></div><div> </script></div><div> </condition></div><div> </mapping></div><div><br></div><div>Thanks for Help</div><div><br></div><div>Jan </div></body></html>