Finishing WorklistItem causes process instance to "Error" out

  • 29 September 2011
  • 4 replies
  • 1 view

Badge +2

Hello,
I’m using the SourceCode.Workflow.Client dll to open a worklistitem using the following call from my Win 7 dev box, the k2 blackpearl server is running on Win Server 2008R2:

Connection.OpenWorklistItem(serialNumber, "ASP") ;


The serialnumber looks like "<MYSERVER>,13351,144 "
I  then iterate over the Actions and find the one having the "Name" property equal to "Finish" and call Execute()  to complete the WorklistItem.


The call succeeds, but the process instance turns into "Error".


Is there any way to find out what could be causing this?


Thx.


Abhijeet



4 replies

Userlevel 4
Badge +14

Any detail on the error received?


Vernon

Badge +11

Curious....the serial number format looks like the old style K2.NET 2003 style.  What version of blackpearl are you running?  Can you post a snippet of your code?

Badge +2

I figured out the problem... the server event following the client event was checking for a specific value for one of the data fields and if that value is set it was throwing an exception causing the process to error out.. mystery solved.

Badge +2

This is a 2003 process migrated over to the latest BP version

Reply