persistence services Questions

Hello, I want to ask some questions about the persistence services :

1) the persistence process is fired when the WF instance is idle

2) Is there a possibility to manage "when the persitence process is fired"

3) When I am using the transcationscope activity, am I obliged to define a persistence services if is necessary,How

Thanks



Answer this question

persistence services Questions

  • Lino17580

    Thanks, can You give me more explaination about the first question
  • azaclauson

    A persistence event does occur when the WF runtime detects that an instance has no current work to do but has not finished (in other words it is idle, waiting for some external event). If this doesn't address your question could you elaborate on the question or the scenario your working with

    Thanks,
    Joel West
    MSFTE - SDE in WF runtime and hosting

    This posting is provided "AS IS" with no warranties, and confers no rights


  • weeMac

    You can only have one persistence service per workflow runtime instance.

    Thanks,
    Joel West
    MSFTE - SDE in WF runtime and hosting

    This posting is provided "AS IS" with no warranties, and confers no rights


  • ROBSR

    1) if you set unloadonidle=true (in the persistence service constructor), then yes or if the host calls TryUnload or UnLoad

    2) yes , you can provide a custom passivation policy : http://blogs.msdn.com/advancedworkflow/archive/2006/05/19/602116.aspx

    3) yes : the reason is the runtime will decide to persist the workflow when a TransactionScope activity or CompensatableTransactionScopeActivity activity completes. It's normal that at that specific moment we need a persistence point.

    Hope this helps

    Serge



  • GoDaddy

    Regarding the 1st answer, please I need more explaination 

    In addition, I want t say by mix --> can I define the 2 persistence services in the same time


  • Joshua Yates

    Thank you for the answers. But the last answer is missing the how to define a sqlPersistence for the TransactionScopeActivity

    Other question: Can I mix a 2 defintion of persistence services :the first is fired after on idling event , the second is fired just after the TransactionScopeActivity

    Thanks


  • persistence services Questions