Skip to main content
Hi,

We are developing a web-app that drives our business processes, with k2 working as the core workflow engine.

I need to access the Activity Data Fields in a Process (not an process instance, as none have been started at this point).
But I am struggling to see how to get these.

I can access Activity Data Fields via the Worklist, however, that only returns Instance data, and only for a specific user.

Any ideas where to start looking?

Regards,
Adrian K
I have a need for the same thing. Unfortunatley it looks like one can only get to the datafields of the current ActivityInstanceDestination. It looks like they did not surface out the individual activities datafields via the API. I have been able to get a list of activities for a given process, but that is as far as it seems to go.

If you get anywhere further please let me know, I keep you informed of any progress I make. Though it looks like I will need to take a different track at this time.

--Eric
Hi Eric,

We are getting them directly from the K2 SQL DB.

We are building an application with K2 Workflow as the internal workflow engine to handle the workflow related functionality. Within our application we store K2 workflow and activity IDs for doing look-ups where necesary.
Better be careful there... querying the db is big no no for K2
see the replies in http://forum.k2workflow.com/viewtopic.php?t=1585&highlight=


from page 2 of the replies:


Read this carefully...

If the query (on K2 db) was not approved for use by the development team prior to implementation, any/all support CAN be voided.

I use CAN in italics because obviously, we will do whatever we can to assist but we will not be held responsible for data loss/corruption etc.

We are only selecting data - we're certainly not wanting to insert or update :)

I'm hoping that it (accessing the K2 DB) will be a temporary fix - does anyone know of a way to get at them (Activity Datafields) via an API?

Reply