Hi all,
I have some cases in my WF where the same worker has different positions then he is simultaneously in different hierarchies.
The current version on AX 2012 R3 seems not supporting this scenario.
1st Hierarchy
Worker A -> Worker B -> Worker C
2nd Hierarchy
Worker E -> Worker B -> Worker D
Assuming we are in the 1st hierarchy , when worker B approves, the next approver assigned is Worker D and not worker C as expected
I had a look to the code and found the class\WorkflowLimitHierarchyProvider method findNextNode()
where I noticed the input is the personnelId (node Id) and not the positionId as expected.
This method infact get the first created positionid for the worker by method
HcmWorker::getPrimaryPosition(hcmWorker.RecId);
and it is the reason why the hierarchy "jumps" from 1st to 2nd. This method returns the first created positionId of the worker.
Does anyone knows why it is not supported or some KB's available to manage this "standard" case?
*This post is locked for comments
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,232 Super User 2024 Season 2
Martin Dráb 230,064 Most Valuable Professional
nmaenpaa 101,156