Skip to main content

Say I have an activity called "CancelFlow". the only way the flow goes here is via an API call tot he GOTOActivity method.  Within the flow, how can I access WHO initiated that activity?  I guess I could set a datafield prior to the GOTO call from my calling app, but I thought K2 must know who started an activity.  Thoughts are appreciated.

I think your suggestion of setting a datafield prior to the call is probably the approach to take.  As it would be easily visible when bringing up the View Flow or Process Instance datafields.


In the Process Overview>Your Process Name>Activity Instance>Process Instance Audit report for the instance, you can find that a "Process reset to activity" occurred but in my test its showing that it was done by the K2 Service account (note I did it through the K2 Workspace management interface not through the API).  Even so  it's a bit deep to navigate to.


Reply