We would like that the account actions should be fired first before the permissions actions. This way we are certain that the account reference is correct before firing any permission actions. This means that we should add a dependency between account actions and permission actions just like a dependency between systems.
Solution:
Inside system
Account grant
Account Access grant -> Account data available, Account update
Account Access revoke -> Account update, Permission Revoke
Account update -> Account data available
Permission Grant -> Account data available, Account update
Permission Revoke->Account data available, Account update
Account revoke -> Account data available, Account Access revoke (critical), Permission Revoke (critical)
Dependant system
All account actions should be taken (Grant and update account are critical) on the dependant system first before executing the system actions
Add icon for waiting on the system or waiting for other action
Add pending reason when entitlement is a grant or revoke pending
Show pending reason in entitlement overview (when hovering pending grant)
The reason should only be on the next reason
Optional: Link entitlement to the progress of the target system
Show all reasons (open actions)
Add to docs