K2Mng and Process Instance IDs

Last post 05-02-2008, 12:35 PM by dave_penguin. 2 replies.
Sort Posts: Previous Next
  •  05-02-2008, 7:00 AM 23541

    K2Mng and Process Instance IDs

    Hello,

    I have a .NET application that sends an email to a list of users that have requested the service, which contains information about all outstanding worklist items that they have. I can retrieve the user's worklist with K2Mng GetWorklistItems, however there is no process instance ID associated with that. Since the application does not run under the context of a user I cannot figure out a way of retrieving the process instance data (short of querying the database). I notice that a similar problem was addressed in this thread however that was running under the context of the logged in user, which my application does not.

     Does anyone have any ideas how I can get that magical process instance ID?

  •  05-02-2008, 11:08 AM 23550 in reply to 23541

    Re: K2Mng and Process Instance IDs

    The thread you refer to (http://k2underground.com/forums/22492/ShowThread.aspx) is correct in that K2MNG does not provide access to data fields, in which case you will need to obtain the ProcessID then use K2ROM to access the data fields. If the user opening the K2ROM connection has "Admin" Server Rights in K2 Service Manager, you can call K2ROM.OpenProcessIntance and will be able to access the data fields.

    As far as getting the process InstanceID from a K2MNG worklistItem, you will need to do something similar to the solution in the referenced thread where the ID is obtained based on the folio.

    Hope this helps.


    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.

  •  05-02-2008, 12:35 PM 23554 in reply to 23550

    Re: K2Mng and Process Instance IDs

    Thanks for the reply, I will give your suggestions a try.
View as RSS news feed in XML