Hi!
I have the following problem:
I need to generate login attribute during importing employee data from HR system. The login attribute have next format:
Axx00zzz, where:
- A - constant letter;
- XX - code of employee's department;
- ZZZ - ordinal number of employee in department.
I decided to store the employeeQuantity attribute in department object and after generating login for a new employee, increment this value. So, i wrote MapAttributesForImport rule, to generate login:
1. Use department atribute of employee csentry and Utils.FindMVEntries to find appropriate mventry object of employee's department;
2. et departmentCode and employeeQuantity from this object and use them to generate login.
3. Then I need to increment(++) the value of employeeQuantity atribute of department mventry object but i got the attribute is read only error, because this attribute is not in flow. But i can not add in into flow, because i need to join person object
and department object before that is not right at all.
Need any help and possible directions of solving problem.
Thanks in advance.