Undeploying Dynamically Generated Organization Model Entities That Have Work Offered To Them
When un-deploying an organization model that contains dynamically generated Positions, work items offered to those Positions will be moved to the 'un-delivered' queue.
To avoid this, if the organization model being un-deployed is the only organization model to reference those dynamically generated Positions (or the Dynamic Organization Model Template from which it originates), the organization model application enters a "prepare-for-undeploy state", until the extension points that generated those Positions are deleted. The extension points can be deleted using the setExtensionPoints API.
If, whilst in 'prepare-for-undeploy' state, the organization model is force-un-deployed, any work items offered to dynamically generated Positions will be redirected to the undelivered queue