Ordered Correlation Set RRS feed

  • Question

  • I have a file port that receives pairs of files: orders.xml and details.xml.  There is a ID in both the orders.xml and details.xml files that I have promoted as a property that I am using to correlate on.  This is working. 


    I am not sure how to do is enforce the order of processing.  I want to process each pair to completion without beginning to process another pair.  And, if the service instance suspends; I do not want to process any more pairs until the suspended instance is terminated or completed.


    I guess I want a version of a Singleton Orchestration...


    Any ideas?

    Monday, March 17, 2008 4:16 AM



    After your orchestration correlates an order with a detail, merge them into a single message, write it to a message queue, and terminate the orchestration.


    Set up a receive port with MSMQ adapter that pulls the merged messages off the queue. Configure the port for ordered delivery. Plug the port to a second orchestration that completes the processing.

    Tuesday, March 18, 2008 6:04 AM