Reoffering a Work Item

If a work item needs to be transferred from a user to whom it is currently allocated, but you want to reoffer it to the initial offered set rather than allocating it directly to a specific resource, you can use the unallocateWorkItem function

The unallocateWorkItem function resets the work item to the Offered state.

Note that you cannot change the resources to which the work item is offered; you can only reallocate to the original offer set. If you need the work item to be assigned to a completely different resource, you must possess the reallocateWorkItemToWorld system action, and reallocate the work item using reallocateWorkItem, as described in Reallocating to Offer Set or to World.