Skip to main content

I'd like to capture the Worklist Item Link to a K2 variable in my workflow each time there's a newly generated task in order that I can reference the links at a later time in the workflow.


15167iC4E0300283E74DFD.png
16282i6282C18EA4025369.png

You can't capture that field directly.  Best you can do is manually construct the proper URL and assign it using a data event.

 

The link is always the page URL you provide to the activity + ?sn=<procInstId>_<activityInstId> where procInstId is the ID of your process instance and activityInstId is the activity instance ID for your activity.  You have access to these two properties within the same activity in which your client event resides.

 

For example, if your form URL is http://server/app/form.aspx, your worklist item link might be http://server/app/form.aspx?sn=921_75.


Reply