Persisting from within NativeActivities OnChildComplete RRS feed

  • Question

  • I have a NativeActivity which schedules Async Children. Each child is scheduled after the preceeding one is finished i.e. when OnComplete callback is called.

    I am calling a Delay Activity from within my Native Activity's OnComplete callback . Shouldn't this now persist my workflow as the async is finished and before I schedule another child? Or is there any other way to persist the workflow at this poing after each AsyncChild is finished executing?


    Thursday, July 21, 2011 1:13 PM


  • Doesn't matter I solved it another way:-

    I use AsyncCodeActivity which just process a single element off the queue and within it a variable is passed 'shouldSave' which is set to true. The whole AsyncCodeActivity is kept in a IF condition and is called only if 'shouldSave' is false otherwise the other branch which contains a persist activity and an assign to set 'shouldSave' to false is called. Ofcourse the whole thing is in a loop till no more elements in the Queue.

    • Marked as answer by Noshirwan Thursday, July 21, 2011 7:01 PM
    Thursday, July 21, 2011 7:01 PM