Windows workflow, TrackingParticipant and Idle vs Unloaded -
i using windows workflow service , have need know when workflow instance idle. using http://code.msdn.microsoft.com/windows-workflow-b9d5ccb7 resource, have created trackingparticipant , being "notified" when states occurs, e.g. idle, completed, persisted, resumed, unloaded, deleted, etc.
what expected that, when workflow instance finished processing current activities, state goes idle. however, seems go idle if there more processing workflow instance perform. example, might see consecutive "idle" states same workflow instance. such, "idle" state not helpful me in determining when workflow instance no longer processing activities.
the "unloaded" state, however, appears give me want. "unloaed" state (as far can tell) occurs when workflow instance has no other activities perform.
so question is: safe rely on "unloaded" state determine if workflow instance no longer processing activities or there other technique should use?
thanks help, eric
Comments
Post a Comment