I have a request to execute an orch only when a particular file is present, so for example:
I've been trying to do it in several ways:
I tried as well with several combinations, but the results are always one of the 3 stated above.
Any ideas on how can I get it to work?
Why not simply have just one receive port on the orchestration (activating receive) that listens for the OK.CTRL message (file mask on receive location).
Then inside the orchestration use C# to access the file system and load the files you need.
However I would probably solve this using SQL Server tables and stored procedures. Then simply store each message into a table and have a stored procedure you can poll from BizTalk that returns true when the OK.CTRL is received into the table. Then BizTalk can extract all messages and forward them. The benefit to this approach is that you do not need orchestration at all.