Symptoms
An action was unable to be loaded when an Out of The office was set.
Diagnoses
After some investigation, the solution implemented was not the right one. The use of the Share worklist item should have been implemented.
Resolution
When you build a clickable worklist item URL using the Workflow Service. The workflow service returns a Link to the item which is the actual link to the item including serial number. The issue comes is if this link is used by a OOO recipient they will not be able to open that URL as the URL has the original Actioner ID in there and will not have rights unless you do an open shared WL item.
When an OOO recipient opens a WL item K2 appends andsharedUser “ORIGINAL DEST”. This is done via the WL API, and to open an OOO item you need to open it using the open shared.
In any custom WL like the one you have, you nee to open the WL items using the API and not links build via SMO. Here is an example:
WorklistItem = this.Connection.OpenWorklistItem – normal open WL item call
WorklistItem = this.Connection.OpenSharedWorklistItem – OPEN Shared WL item, ie OOO
The above is also why this works in any OOTB K2 Worklist.
The way to go is to use the API and not the SMO method to get the WL items if the shared WL items are the ones to get.