I wan't to know if it's the right way to use the InstanceStore.WaitForEvents and the WorkflowApplication.LoadRunnableInstance.
When using the InstanceStore.WaitForEvents, the HasRunnableWorkflowEvent event is raised if any instance is ready. And, to call the WorkflowApplication.LoadRunnableInstance (), we need to create a new WorkflowApplication, and it require the right workflow
definition. It's easy when having only 1 workflow implementation. But, if there are multiples types of workflows associated with the same InstanceStore, and because the HasRunnableWorkflowEvent doesn't have any other informations on the ready instance that
will be loaded by the LoadRunnableInstance (), we can't know what type of instance we must create for the new WorkflowApplication.
So, the only way I see to know which workflow definition I should create is to have at 1 persistance store for each workflow type... Is it the right way to handle persistence?
View Complete Post