Skip to main content

Can anybody think up a good way of finding out the new serial number of a worklist item after calling "GoToActivity()" ?

(i.e. being able to tally them up afterwards)...

I'm guessing this is going to have to be yet another lookup to the K2 database...
 

Would recording the serial number to a process datafield from within the client event be sufficient?


-mike


I thought of that, but what if there are multiple worklist items - it would mean using the XML data to record multiple pairs (e.g. "A became B", "C became D" and so on...)

I was hoping to find a way of doing this without changing the process definition itself. I'll have a dig around in the database - the history should turn up enough to figure it out after the fact.

It's a real pain though...

 


Question is: Why do you need the Serial number of the worklist item after a GoToActivity?


Is it just to action the worklist item?


Have you looked at the WorklistCriteria object yet?


Note:  The GoToActivity method call will be queued (AFAIK) and you may not be able to retrieve the worklist items IMMEDIATELY after the GoToActivity call.


Regards,


Ockert


Reply