ExpireActivity and events within

  • 11 November 2005
  • 1 reply
  • 15 views

Badge +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

Badge +11
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

Reply