Musings by Generator

Development, Life and everything else in S.A.

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:

contextView

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).

 

 

xmlPreview

 

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.

Podcasting.

My boss wants me to get more involved in the social side of my work, blogging etc, which is a bit hard since I already run a personal blog, this professional blog and then I am also involved with the ThirSol community. So I am already heavily involved as it is, but the one thing I haven’t tried is podcasts, so I figure I will give it a go.

What it will be about I am not sure, since my work requires me to work with SharePoint and the K2 platform, it will probably end up having to do with that and maybe a bit of development thrown in.

So, for now it is only an investigation since I would need to buy a decent microphone as well so don’t want to spend the cash if I am not going to do it. I will keep you all posted and will probably put the podcasts up on this site as well as in ITunes.

Older Posts »