I'm trying to provide some friendly error messages based on the error codes returned from K2 errors.
In particular I'd like to inform a user that the worklist item they have attempted to open has been completed previously by another user in the same destination group (not an error) and also inform them if they attempt to open a worklist item to which they don't have access (which is an error).
If a normal user attempts to open someone else's worklist item then the following message is displayed:
24411 K2:DOMAINUSER from <IP address>:<port> is not allowed to open the worklist item with SN=<serial number>
However if a user attempts to open a worklist item to which they do have access, but that has been completed by another user in the same destination group, the same error message is displayed.
Looking at the documentation, I would have expected to receive the following for a user attempting to open a completed worklist item:
26030 Worklist item <serial number> not found for K2:DOMAINUSER at <IP address>:<port>
How can I differentiate between the two scenarios and provide proper instructions to the end user if the error messages are identical?
Thanks in advance,
DaveC