Skip to main content
Hi all,

I created a  new SharePoint Workflow Integration process. I create a simple approval process with a SharePoint workflow integration client. It's all right but I have a strange behavior when I try to open the task from "K2 worklist webpart" or from worklist in K2 Workspace. In the url of the task I have double reference to the sharepoint site. For example:

I have

 

http://<sharepoint server>/boc2/boc2/Lists/Tasks/DispForm.aspx?ID=4

 

instead of:

 

http://<sharepoint server>/boc2/Lists/Tasks/DispForm.aspx?ID=4

 

where "boc2" is my site hosting my list and integrated workflow.

Any ideas?

 

Thanks

I just ran into this and I have confirmed it as a bug with K2.  However, there is a work around I am writing a blog on.  Should have it done this week.


However, if you need to do something ASAP, just right click on the sharepoint integrated client event, select to veiw the code, the view the code in the WF.  At this point, I am going on my memory because I do not have my K2 machine running, however you will see some commented out code that is creating a URL.  Uncomment the code and that is a temporary solution.


I will have a better one up soon and will reply here when I get it done...


Thank you for you quickly answer. The commented out code you refer, I think should be that in "- ExecuteForUser -" region:


// Do not remove - Can be used as another method to populate worklist
K2Uri uri = new K2Uri(GetXmlFieldValue("WebURL"));
workListURL = uri.FormatURI(true) + "_layouts/WrkStat.aspx?List={";
workListURL += listId.ToString() + "}&WorkflowInstanceID={";
workListURL += workflowInstanceId.ToString() + "}&ItemUniqueId={";
workListURL += listItemId.ToString() + "}&taskListId={";workListURL += taskListId.ToString() + "}";
workListURL = HttpUtility.HtmlEncode(workListURL);


Unfortunatly, this code doesn't open sharepoint worklist item but the sharepoint workflow status page...


I'm eargly waiting your post :-)


Reply