Skip to main content
Nintex Community Menu Bar

ExpireActivity and events within

  • November 11, 2005
  • 1 reply
  • 24 views

Forum|alt.badge.img+1
I have a question regarding the behavior of ExpireActivity method. Let's say I have an activity with 4 events:

Activity
Event1
Event2
Event3
Event4

Event2 is a server event and the code looks like this:

Sub Main(Byval K2 as ServerEventContext)
K2.Synchronous = True
K2.ExpireActivity(K2.ActivityInstanceDestination.Activity.Name)
End Sub


Question is, will Event3 and Event 4 execute?

Thanks

1 reply

Forum|alt.badge.img+11
  • Nintex Employee
  • November 11, 2005
With your code as it is, Event2 will be expired/completed and Event3 and Event4 will still execute. If you however change: K2.Synchronous = True to K2.Synchronous = False, the whole Activity will be expired.

Hope this helps,
Ockert