Work Item State Transitions

Work items go through transitions from state to state.

The following diagram and table show what transitions a work item goes through between states for PUT operation that is used to bring about each of the possible changes.

State Transitions

Start State End State Transition State Description
WMstateOffered WMstateAllocated WMstateAllocate The offered work item is allocated to the specified organization model entity.
WMstateOpened WMstateAllocate and WMstateOpen The offered work item is allocated to the specified organization model entity and immediately opened.
WMstateAllocated WMstateOffered WMstateUnallocate The allocated object is returned to its original offered state.
WMstateOpened WMstateOpen The allocated work item is opened.
WMstatePendHidden WMstatePend The allocated work item is put into the pendHidden state for the duration of the specified hiddenPeriod.

When the hiddenPeriod timer expires, the work item is returned to its original allocated state.

WMstateOpened WMstateOffered WMstateClose The open work item (which must contain no data changes) is closed and returned to its offered state.
WMstateAllocated WMstateReallocate The open work item is reallocated to the specified organization model entity. It will be in the allocated state.
WMstateCompleted WMstateComplete The opened work item is complete.
WMstatePended WMstateClose The open work item is closed and any new data copied. It is then put into the pended state.
WMstatePendHidden WMstatePend The open work item is closed and any new data copied. It is then put into the pendHidden state.

When the hiddenPeriod timer expires, the work item is transitioned to the pended state.

WMstatePended WMstateAllocated WMstateReallocate The pended work item is reallocated to another organization model entity and put into the allocated state.
WMstateOpened WMstateOpen The pended work item is opened.
WMstatePendHidden WMstatePend The pended work item is put into the pendHidden state for the duration of the specified hiddenPeriod.

When the hiddenPeriod timer expires, the work item is returned to its original pended state.

WMstatePendHidden WMstatePended or WMstateAllocated WMstatePend A work item that was hidden using pendWorkItem is returned to the state it was in before it was hidden - pended or allocated.

A work item that was hidden is transitioned to the pended state.

WMstatePendHidden WMstatePend The duration for which the work item will remain in the pendHidden state is reset to the specified hiddenPeriod.
Note: A work item cannot be accessed while it is in the PendHidden state.