Transactions in services with request reply pattern in a pick branch


  • Hello,

    How can I enclose activities in a transaction within a body of a pick-branch (i.e. Action of PickBranch activity), where the Trigger of pick-branch receives a message via Receive activity and the Action of pick-branch sends reply via SendReply activity? Transaction scope must be placed within the Action of PickBranch, right before SendReply.

    I cannot use TransactionScope between Receive and SendReply (see here for explanation: )

    On the other hand, TransactedReceiveScope activity does not seem to fit to the pick-branch pattern.

    Thanks for help,
    Greg Jasinski

    Wednesday, December 01, 2010 8:30 AM


  • If you put 2 TRS activities in parallel, and configured the parallel to complete and cancel outstanding branches when one branch completes (by setting its completion condition to true), then this would give similar behavior to a pick branch with 2 branches (or you could just put a TRS in some of the branches depending on what the trigger was in the branches. Would that work for you?

    Steve Danielson [Microsoft]
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at


    • Marked as answer by Greg Jasinski Monday, December 06, 2010 9:48 AM
    Wednesday, December 01, 2010 4:57 PM