I am using longrunning transaction, in this there is call to database, I wanted to put these send receive shapes in other scope so that I can catch exception but Iam facing problem when iam keeping these shapes in scope the response from database iam unable to use outside this scope it is giving error unconstructed message.
You could try just setting a variable at the Orchestration level and not the scope level. You might be doing that already though.
Long and short of it, you need to change your logic so you don’t send a message that might not be constructed.
I’d start by adding a Boolean = true when you want to send a message and set the response text to send to an Xml Document. Then, construct a message from the Xml Document inside the decision shape when the Boolean is true. Make sense?
Might be some other ways to do it too. This is just what I can think of off the top of my head.