locked
Workflow service instance is aborting, when TransactedReceiveScope activity is cancelled. RRS feed

  • Question

  • I have a workflow service which have a Pick activity.

        <p1:Pick>
          <p1:PickBranch DisplayName="WriteData operation">
            <p1:PickBranch.Trigger>
              <TransactedReceiveScope Request="{x:Reference __ReferenceID0}">
                <p1:Sequence>
                  <p1:Sequence DisplayName="Do some DB operations">
                  </p1:Sequence>
                  <SendReply DisplayName="SendResponse">
                    <SendReply.Request>
                      <Receive x:Name="__ReferenceID0" DisplayName="ReceiveRequest" OperationName="WriteData" ServiceContractName="p:IService">
                        <Receive.CorrelationInitializers>
                          <RequestReplyCorrelationInitializer CorrelationHandle="[handle]" />
                        </Receive.CorrelationInitializers>
                        <ReceiveParametersContent />
                      </Receive>
                    </SendReply.Request>
                    <SendParametersContent />
                  </SendReply>
                </p1:Sequence>
              </TransactedReceiveScope>
            </p1:PickBranch.Trigger>
            <p1:Sequence DisplayName="misc operations">
            </p1:Sequence>
          </p1:PickBranch>
          <p1:PickBranch DisplayName="Wait for timeout">
            <p1:PickBranch.Trigger>
              <p1:Sequence>
                <p1:Delay Duration="00:01:00" />
                <p1:Sequence DisplayName="misc" >
                </p1:Sequence>
              </p1:Sequence>
            </p1:PickBranch.Trigger>
            <p1:Sequence DisplayName="Do some DB operations">
            </p1:Sequence>
          </p1:PickBranch>
        </p1:Pick>


    I have encountered a problem with this service. When timeout and WriteData message happens at same time, the workflow instance is aborted. 

    Is there any property like AbortInstanceOnTransactionFailure in TransactionScope activity, available for TransactedReceiveScope activity?

    or Is there any solution for this problem?

    Tuesday, October 15, 2013 1:47 PM

Answers