Skip to main content
Hi,

I want to keep track of the current activity in the process by holding the name of the activity in a process field.

I am not sure how to do this and was wondering if anyone can help me.

I think it will something along the lines of:

K2.ProcessInstance.DataFields["processfield"].Value = (String) Current Activity Name;

Thanks in advance

S
Hi Wilsons,

You need to add a server event in each activity to update your process data field.

It should include a line like:

K2.ProcessInstance.DataFields("aaa").Value = K2.ActivityInstanceDestination.Activity.Name

Reply