Skip to main content
Nintex Community Menu Bar

How to obtain the name of the current activity

  • March 21, 2006
  • 1 reply
  • 5 views

Forum|alt.badge.img+1
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

1 reply

Forum|alt.badge.img+6
  • March 22, 2006
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