I need to post diferents file names depending on the values of same fields in the event suscribed by the eWay.
How can I change the ftp file name from the colaboration rule?
You can`t change e*way settings directly from collaborations: they (collaborations) run in its own environment and e*way configuration variables just not visible from this point.
What You can do is to add into your .ssc one more node which will hold desired filename.
Then You have to change "Process Outoging Message" function of your e*Way. Change the value of global variable "PUBLISH_TO_EXTERNAL_REMOTE_FILE_NAME" like this:
(set! PUBLISH_TO_EXTERNAL_REMOTE_FILE_NAME (get ~event%Root.FileName))
May be it will be necessary also to reconnect to the system - i'm not sure about the tasks done in initialization moment.
(use (connect-to-remote) & (disconnect-from-remote) or (ftp-ext-connect) & (ftp-ext-shutdown)).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.