Atomic scopes and Transactions

Home Page Forums BizTalk 2004 – BizTalk 2010 Atomic scopes and Transactions

Viewing 1 reply thread
  • Author
    Posts
    • #19071

      Hi I have an orchestration A which parses a flat file and does some stuff and invokes orchestration(s) B (for each record in the flat file one orchestration B instance). all these instances have some other processing to be done and finally invokes orchestration C which have to send some details with some details to a HTTP send port.

      Here is the problem.

      orchestration C should be called only once for the last instance of orchestration B i.e., after all the orchestration B instances have finished with their stuff. I tried to achieve this by updating a database table to indicate whether or not orchestration C can be triggered. Some how BizTalk is running these orchestrations so fast that all orchestration B instances end up triggering orchestration C. The database check is done in a Atomic scope in orchestration B.

      How do i make sure only instance of the orchestration C is run?

      Thanks in advance for any suggestions

    • #19103

      There may be few ways of doing this. You can try these if they fit your need-

      1.Run a counter in Orch A and increment it everytime B returns completed status. When counter = # of records in flat file, trigger Orch C from A.

      2.If C should be lauched after completion of a “specific” instance of B, then have A look for response returned by instances of B. When the specific instance of B completes, launch C.

      hope this helps.. 

       

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.