I have a WF Service (CustomerProvisioningService) that receives a Request message and immediately runs up a StateFlow (CustomerProvisioningStateFlow) and which is marked as CanCreateInstance.
The first State in the flow has a Sequential flow as its Entry activity which is a long running work flow with its own Send and ReceiveReply pattern to call out and receive extra information(ProvisionCustomerActivityFlow). This workflow CanCreateInstance too.
I presume for the sequential flow I need to manage correlation based on Content (CustomerId) and in this way I can identify the persisted workflow in the underlying AppFabric sql persistence.
Subsequently I have other operations in the StateFlow which are represented by WCF Service calls similar to :
SuspendCustomer(string customerId)
I am assuming that I need to pick up the correct StateFlow instance by correlating with the CustomerId in the StateFlow but I can find no way to apply Correlation in the StateFlow, neither by adding CorrelationInitializers nor referencing a local CorrelationHandle variable.
Now I am questioning if I need correlation on the StateFlow and if so how do I do it? Or am I misunderstanding something here?
Many thanks
Brian