Task #850
closedSync of contract relationships - Start HR process after sync end.
100%
Description
- Does not start HR processes for each synced contract => we need can skip start of HR process during sync
- Start HR processes after sync end
Updated by Vít Švanda about 7 years ago
- % Done changed from 0 to 70
- All HR processes are skiped during sync of contract relationships.
- Added boolean attribute for turn on/off start HR processes after succes end of contract sync.
- After end of sync is start task HrEndContract. Maybe should be also started LRT for other HR processes (start, exclude)?
- Created change script and tests for sync.
Updated by Vít Švanda about 7 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Vít Švanda to Radek Tomiška
- % Done changed from 70 to 90
After discussion, all HR process are started after contrac sync.
Documentation completed:
https://wiki.czechidm.com/devel/dev/synchronization/relation-sync#hr_processes
https://wiki.czechidm.com/devel/dev/workflow/hr-processes#standard_set_of_hr_processes
Updated by Vít Švanda about 7 years ago
- Assignee changed from Radek Tomiška to Ondřej Kopr
Updated by Ondřej Kopr about 7 years ago
- Status changed from Needs feedback to In Progress
- Assignee changed from Ondřej Kopr to Vít Švanda
- % Done changed from 90 to 80
I made review synchronization and hr process works well, but second synchronization wasn't processed any items, we found 'bug' in scheduled tasks.
After some consultation we decided that scheduled task without id process all items
commit: https://github.com/bcvsolutions/CzechIdMng/commit/2802d83d3225a032e9c4d28a561b187beadd6ca5
please check this solutions.
Updated by Vít Švanda about 7 years ago
- I had to modified them for start processes via scheduled tasks (not directly via executors), because we do not want start processes for every contracts everytime.
Updated by Vít Švanda about 7 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Vít Švanda to Ondřej Kopr
- % Done changed from 80 to 90
I had to repaired some tests. Now works.
Updated by Radek Tomiška about 7 years ago
- Status changed from Needs feedback to Closed
- Assignee changed from Ondřej Kopr to Vít Švanda
- % Done changed from 90 to 100
It works and code looks nice, thx.
Note: We need to improve statefull schaduled tas api. Work with sateful task is really black magic.