locked
Receive And Send Reply problem RRS feed

  • Question

  • hello all!

    I have a state machine workflow of 2 states. State 1 has 2 transitions and they share the same trigger, a Receive operation.

    What i want to do is: if the received message is "GO" the transition1 action is to reply "DONE" if the received message is not "GO" the transition2 action is to reply "TRY AGAIN"

    The problem im facing is: I can use a ReceiveAndSendReply activity, but i cant get everything to work with the receive on the trigger and the reply on the transitions Actions... like this:

    Can anyone tell me how can i do this?!?

    Wednesday, October 24, 2012 10:08 PM

Answers

  • Hi,

    As SendReply is part of a request/response message exchange pattern of a service operation, I don't think you can place the Receive activity in Trigger, but place SendReply activity in different Actions. In this case, you'll need to construct the message of response between Receive and SendReply pair or call external service to send response. Thanks.


    Leo Tang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by LeoTang Wednesday, October 31, 2012 3:04 AM
    Friday, October 26, 2012 9:50 AM