Using the Workflow Integration Process xml data field.
This irritated me so much that i must blog about it, hopefully, you will be spared my frustration.
I have a pretty simple K2 Blackpoint process with “SharePoint Workflow Integration”. On one of the stages, an administration user has to assign a custodian and a manager, and these two users are assigned tasks later on in the process. This event happens as it should but afterwards I grab the selected users from the record in the list that started off the process instance. Since adding in WFI into a process, generates a xml data field and populates it with the details of the item linked to the process, I thought I would just use this field to indicate which item id to look for. Below is an image of what the data field looks like in the K2 Context browser:
As you can see, it would make sense to use the ID field of the item group to indicate the ID of the item I want to grab the information from. This is not the case, you would actually use the field called “item” in the item group, I know, very weird naming. It turns out that the “ID” value is an unique identifier for the items within the list “items”.
I though I was going nuts when my mind suggested this, so I went into the ViewFlow of a process and had a look at the process data, specifically, the WFIProccessField data field, and as you can see in the image below, my realisation was correct. (I have removed the server names from the image to protect the client).
On a side note I am happy to report that K2 now works with the people/group picker in SharePoint, I had nasty issues trying to use this control in K2.
Disclaimer:
Please read the disclaimer if you plan on using anything from this article.

