Skip to main content
Hi

I'm creating some generic methods to both Update() and Finish() activities. The idea is to pass in, say, a Hashtable of either Process or Activity variables where each key is the name of the variable and the object within is e.g. a string representing the value.

Is there a way of getting the Type of the Process or Activity variable? I know they are stored as objects, but are defined in K2 Studio as a particular Type and I would like to be able to convert my Hashtable entries into the correct type rather than be forced to use just strings.

Thanks
The only way that I'm aware of is to export your K2.net Studio process definition to an XML file (from within K2.net Studio). If you parse this file, you'll be able get the type of each variable declared. I do not think it is possible to get the data types from the database.

Regards,
Ockert
Hi Ockert

Sorry, I only just noticed your reply to this!

Thanks, but I don't think this will work in this scenario.

Reply