...
If a person has more than one employment, there is often a need to determinate his its main employment. This is can be used in many places such as mappings. For example a Core Identity can have two emplyoments but you would like to provision his its job title to a target system. In order to determinate the job title, the main employment is used.
The rules to choose the main employment are as following:
Only consider employments, which are not in state “deleted”, then:
Main Employment is set
Order by
Valid From and not expired
Percentage
Has valid to
Valid to
Id