Processes where running into error state because of custom process datafields containing wrong values. So I tried to access this data by API to change the contents of the fields. But everything I try does not work.
Example:
Connection
connection = new Connection();connection.Open(_serverName, connectionString.ToString());
ProcessInstance
pi = connection.OpenProcessInstance(86);this code ends in an error like 'no such processinstance for user ...'. So this means I have to impersonate before but that didn't help. I guess because the process instance is not assigned to a user while being in error status. Also when I try to open a worklist but the process instances in error state don't appear in worklists.
So I tried this:
ServerItem
serverItem = connection.OpenServerItem("71_86");That tells me that there is no item for this serial. I guess the serial is 'processID_processInstanceID' - is that wrong? What exactly is a ServerItem? Is it everything or only items that are not assigned to a user?
I also tried to use
SourceCode.Workflow.Management.
WorkflowManagementServerand can list all process instances but there are no methods to work with the datafields.
Help would be nice!