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

