No such item in the Worklist

  • 26 June 2007
  • 1 reply
  • 0 views

Badge +1

He have a strange problem.  We see the worklist item in the Tasks List web part that ships with K2.  We also built a page that uses the K2ROM APIs to open a worklist.  The application is deployed to an environment that has 2 web servers, both running K2. 


Now, depending on which web server is hit, we can either open the item, or we get the above error.  That is, for the same worklist item, if we open our page while connecting directly to one of the server(//http://<serverName2>/<application>/<page>), we're getting the above error.


We're not opening the item conventionally though.  We us the OpenWorklist method to open the worklist, then loop through the items until we find an item with a matching serial number.  We don't think there are issues with such an approach though.


We'll try opening the item using the OpenWorklistItem method and see if we're getting the same error.


Any help would be appreciated.  Thanks!


1 reply

Badge +1

Just though I'd share what we found.  The problem was with how we were retrieving the WorklistItem object. Instead of calling OpenWorklistItem from the Connection object, we called OpenWorklist to retrieve the items. Then we looped through the items and compared serial numbers. What we didn't realize was that the serial numbers are dynamically constructed in a worklist depending on the server that K2 is running on.  So if the server name in the serial number doesn't match the server that the web request is sent to, we don't 'see' the item in the worklist (that is, <serverName1>,<procInstId>,<eventInstId> != <serverName2>,<procInstId>,<eventInstId>).

We changed our implementation from openning a worklist to openning the actual worklist item. That solved our problem.

Reply