Workflow Instance Persistance - and Reload

The question I have is very simple, but wante do confirm before designing the app...

  • I have a workflow
  • persistance service is registered on the runtime using a connection string
  • WF Runtime is hosted on X application.
  • I Create an instance of workflow
  • Workflow get persisted after pre-defined idle time
  • Workflow get unloaded

Now in another application, I have WF runtime with persistance service (same connection string as WF runtime on X application)

Question is, what would happen if I try to send an event to workflow instance? the event is decorated with ExternalDataExchange and has InstanceId of instance created in application X. Now in this scenario, do I have to use _WFRuntime.GetWorkflow method to get instnace and then call event or WFRuntime would take care of finding appropriate instance and do necessary work of loading it, hydrating it and sending event to that instance?

Just wanted to confirm.

Thanks,

Hiten

[1112 byte] By [Hiten] at [2007-12-21]
# 1

This is correct: you have to load the workflow from the other application; a great example is :

http://msdn.microsoft.com/msdnmag/issues/06/03/CuttingEdge/


Serge Luca; Guidance Belgium; blog: www.redwood.be

SergeLuca at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified