locked
What NativeActivityContext.CancelChildren should do with activities that are partially executed? RRS feed

  • Question

  • What NativeActivityContext.CancelChildren should do with activities that are partially executed? e.g., it has been suspended waiting for a bookmark or being persisted!

    • Is it going to remove all bookmarks for that activity and the activity will be considered complete?
    • Is it going to call the CompletionCallback if exists?
    Thank you
    Muhammad Mosa http://mosesofegypt.net
    Saturday, August 7, 2010 6:15 PM

Answers

  • Hi,

    If a native activity that has outstanding child activities is canceled, then the child activities are canceled. if these activities have outstanding bookmarks then the bookmarks are removed and the activity is marked as canceled. This topic covers cancellation; the top part is about workflow cancellation but at the bottom it talks about how cancellation works with custom activities. Does this info help any?

    Steve Danielson [Microsoft]
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm

     

    • Marked as answer by Moses Soliman Saturday, August 7, 2010 7:37 PM
    Saturday, August 7, 2010 7:26 PM

All replies

  • Hi,

    If a native activity that has outstanding child activities is canceled, then the child activities are canceled. if these activities have outstanding bookmarks then the bookmarks are removed and the activity is marked as canceled. This topic covers cancellation; the top part is about workflow cancellation but at the bottom it talks about how cancellation works with custom activities. Does this info help any?

    Steve Danielson [Microsoft]
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm

     

    • Marked as answer by Moses Soliman Saturday, August 7, 2010 7:37 PM
    Saturday, August 7, 2010 7:26 PM
  • Yes it is thanks, However I see no links in your reply! I guess you mean this article Modeling Cancellation Behavior in Workflows
    Muhammad Mosa http://mosesofegypt.net
    Saturday, August 7, 2010 7:40 PM