I Have a Expression on top of my Orchestration which uses a helper class. After the expression i placed a Receive and a Send Shape which connects to the Receive and Send ports. When i try to compile i get this error: an activatable receive must be the first executable statement in a service.
The Receive shape is Activated.
I need to execute the helper class functionality before it comes to the Receive shape. How is this possible ?
Thanks in Adance.
Unfortunately, I'm afraid this is not possible (if anyone else shares another opinion about this, let me know!).
Your process gets triggered by a subscribtion on a file that's published on the messagebox. So, the first statement that MUST happen is a receive of a message inside your orchestration. I see no possibility to execute something in an orchestration, ever before the orchestration itself is started...
Maybe, try looking into creating a custom pipeline or so, to do your processing, before firing up the orchestration..
Andrew is right on in his answers. What are you trying to do with the helper class? If you are doing any file pre-processing in that class, you might want to consider Atomic Scope's BizTalk Message Archiving Pipeline Component:
Maybe their tool can suit your needs...
"Google skills are more important than your coding skills."