I have a request to execute an orch only when a particular file is present, so for example:
- My customer will load several XML files.
- After all XML files were loaded, an special file called "OK.CTRL" will be created by them to point out that the XML filecopy finished.
- My orch should be listening on a receive port for this "OK.CTRL" file creation. When exists then it should start processing all the XML files.
I've been trying to do it in several ways:
- With 2 receive ports, the first as activated and the second not, but then I got an error: "you must specify at least one already-initialized correlation set for a non-activation receive that is on a non-selfcorrelating port".
- Same as 1, but with both on activated, and then there's another error: "an activatable receive must be the first executable statement in a service".
- Using a correlating set, but then the error "in a sequential convoy the ports must be identical", but I need 2 different ports, since file mask are different.
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?