One thought that comes to mind is write a xlate TCL proc to retrive the destination thread name from the message metadata.
There is an example of accessing the user metadata I posted at this URL to get you some code and screen shots similar enough to help illustrate this conceputal approach:
<a href="https://usspvlclovertch2.infor.com/viewtopic.php?t=1367″ class=”bbcode_url”>https://usspvlclovertch2.infor.com/viewtopic.php?t=1367
Of course the metadata key you will use will be different than USERDATA like in my following statement:
set USERDATA_metadata [xpmmetaget $xlateId “USERDATA”]
According to the cloverleaf documentation you can see all the metadata keys if you ommit the specified key, which is USERDATA in my case so something like this
echo [xpmmetaget $xlateId]
Then pick the metadata key that looks like destination thread and see if that returns the correct destination thread name.
Then just use the output of the custom xlt TCL proc to set a temp variable in the xlate that can have an xlt if stament to determine what actions to invoke in the xlate.
Personally I see maintenance concerns with this approach and probably problems using the xlate testing tool but might work for a route test.
I don’t like the idea of an xlate being tied to the name of a destination thread.
In higher versions of cloverleaf, you can stack xlates so the base xlate can be used for both routes, and the deviations can be separate xlates stacked on the applicable route(s).
Jim Kosloskey recently reported to our team a finding that the tester in cloverleaf 6.0 that we use, unfortuantely gives a different result for stacked xlates than the actul interface does, so run thru an actual interface if unexpected outcomes appear in tester.
Russ Ross
RussRoss318@gmail.com