Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
devel:documentation:synchronization:dev:contract-slice-sync [2019/08/13 13:30] doischert [Fields for sync contractual relationship mapping] |
devel:documentation:synchronization:dev:contract-slice-sync [2019/10/01 07:48] doischert [Fields for sync contractual relationship mapping] |
||
---|---|---|---|
Line 2: | Line 2: | ||
{{tag> sync contract slice}} | {{tag> sync contract slice}} | ||
- | <note tip>**Time slices of identity (contractual) relationship | + | <note tip>**The synchronization of time slices of identity' |
- | < | + | < |
- | ===== What is time slice of contractual relationship ===== | + | |
- | <note tip>**Typically one contractual relationship is equals | + | ===== What is the time slice of contractual relationship ===== |
+ | |||
+ | Typically one contractual relationship is equal to one contract in company for the identity. One slice of the contractual relationship describes | ||
+ | |||
+ | From these slices (specifically the latest one), a contract is built. This contract is managed only by time slices and cannot be modified directly. | ||
===== Actions after end of sync ===== | ===== Actions after end of sync ===== | ||
- | <note important> | + | After the synchronization, |
+ | |||
+ | <note important> | ||
+ | |||
+ | ==== Running HR processes manually ==== | ||
+ | |||
+ | As mentioned above, sometimes, you need to run HR processes manually. Each HR process is a long-running task a can be run from Settings > Task scheduler > Scheduled task. There you can run the desired LRT by simply clicking the green arrow button. | ||
+ | |||
+ | You should run HR processes in this order: | ||
+ | - `ClearDirtyStateForContractSliceTaskExecutor` | ||
+ | - `SelectCurrentContractSliceTaskExecutor` | ||
+ | - `HrEnableContractProcess` | ||
+ | - `HrEndContractProcess` | ||
+ | - `HrContractExclusionProcess` | ||
+ | |||
+ | For more details about some of them, see below. | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | So, in a situation where you ran the synchronization and either cancelled it manually before it finished and the HR processes ran or just decided to sync your contracts again (perhaps the data changed), | ||
+ | |||
+ | ==== Clear dirty state for contract slice ==== | ||
+ | |||
+ | This LRT deletes those slices which have the flag " | ||
==== Select current contract slice ==== | ==== Select current contract slice ==== | ||
- | Before HR process is executed long running task select | + | Before HR processes proper are executed, this long running task selects the current contract |
- | ==== HR processes ==== | + | ==== HR processes |
- | [[devel:dev:workflow: | + | [[devel:documentation:hr_processes|HR processes]], simply put, ensure the correct state of identity depending on the state of their contractual relationships. Because we need to evaluate the status of contractual relationships as a whole (to a given identity), it is not possible to trigger HR processes during the synchronization of each contractual relationship. Therefore, no HR processes are executed during synchronization |
- | HR processes can be (**should be**) correctly started after the end of the sync. This can be ensured | + | There are three HR processes: HrEnableContractProcess, |
+ | |||
+ | HR processes can be (**should be**) correctly started after the end of the sync. This can be ensured | ||
==== Automatic roles ==== | ==== Automatic roles ==== | ||
- | Recalculation of automatic roles is skipped during sync. Recalculation of automatic roles can be (**should be**) correctly | + | Recalculation of automatic roles is skipped during sync but it can be (**should be**) started after the end of the sync. This can be ensured by the property ' |
{{ : | {{ : | ||
===== Fields for sync contractual relationship mapping ===== | ===== Fields for sync contractual relationship mapping ===== | ||
- | Bellow is an example of contractual relationship mapping using slices. This is only an example; in general, slices must be mapped in the same way that contracts are but must have two extra attributes: "Valid from of slice" and some sort of "Slice ID". | + | |
- | + | * **Valid from of slice** - Defines time from which the slice is valid. Valid till of slice is computed | |
- | * **Contract code** - Code of the parent contract. This `String` value represents relation between all slices for the same contract. | + | * **Owner** - Relation' |
- | * **Valid from of slice** - Defines time from that is slice valid. Valid till of slice is computes | + | |
- | * **Slice ID** - ID of the time slice, it is often transformed by combining " | + | |
- | * **Owner** - Relation owner. Must be identity in IdM. This field is required for every relation. Output from attribute transformation can be: | + | |
* ID of IdM identity in String or UUID format. | * ID of IdM identity in String or UUID format. | ||
* Username of IdM identity in String. | * Username of IdM identity in String. | ||
- | * **Main** - Define | + | |
- | * **State** - State of contract. Output from attribute transformation must be enumeration ContractState or String representation for this enumeration (DISABLED, EXCLUDED) (more details | + | * **State** - State of contract. Output from attribute transformation must be enumeration ContractState or String representation for this enumeration (DISABLED, EXCLUDED) (see below for more details). |
- | * **Position** - String representation of contract. Typically name of contract. | + | * **Position** - String representation of contract. Typically name of contract. |
- | * **Guarantees** - List of leaders, directly linked on the contractual relationship (more details | + | * **Guarantees** - List of leaders, directly linked on the contractual relationship (see below for more details). |
- | * **Work position** - Define | + | * **Work position** - Defines |
- | * **Valid from of contract** - Validity for the contractual relationship. Output value from attribute transformation must be ' | + | * **Valid from of contract** - Validity for the contractual relationship. Output value from attribute transformation must be ' |
- | * **Valid till of contract** - Validity for the contractual relationship. Output value from attribute transformation must be ' | + | * **Valid till of contract** - Validity for the contractual relationship. Output value from attribute transformation must be ' |
- | * **Externe** - If is the contractual relationship for externe | + | * **External contractor** - If the contractual relationship |
- | * **Description** - String for description the relation. | + | * **Description** - String for the description |
==== Guarantees field ==== | ==== Guarantees field ==== | ||
- | List of leaders, directly linked | + | List of leaders, directly linked |
Output from attribute transformation can be: | Output from attribute transformation can be: | ||
* Username of leader (String). | * Username of leader (String). | ||
Line 57: | Line 82: | ||
* Null value. If is value not defined and in sync configuration has set ' | * Null value. If is value not defined and in sync configuration has set ' | ||
- | If some leader | + | If no leader |
< | < | ||
Line 68: | Line 93: | ||
==== Work position field ==== | ==== Work position field ==== | ||
- | Define | + | Defines |
Output from attribute transformation can be: | Output from attribute transformation can be: | ||
- | * Id of tree node (UUID or String). | + | * Id of a tree node (UUID or String). |
- | * Code of tree node. Node by code will be searching | + | * Code of a tree node. Node by code will be looked up in default tree (defined |
- | * Null value. If is value not defined and in sync configuration has set ' | + | * Null value. If no value is defined and the sync configuration has set ' |
- | If node will not found. Then will be synchronization item marked as ' | + | If no node is found the synchronization item will be marked as ' |
< | < | ||
Line 87: | Line 112: | ||
</ | </ | ||
<note important> | <note important> | ||
- | When isn' | + | If no work-position attribute |
==== State field ==== | ==== State field ==== | ||
State of contract. Output from attribute transformation must be enumeration ContractState or String representation for this enumeration. | State of contract. Output from attribute transformation must be enumeration ContractState or String representation for this enumeration. | ||
- | ContractState | + | ContractState |
* **[[..: | * **[[..: | ||
* **[[..: | * **[[..: | ||