Newbie question: Can I call another xlate from within xlate?

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Newbie question: Can I call another xlate from within xlate?

  • Creator
    Topic
  • #54802
    Ashish Sharma
    Participant

      Hi,

      Can I call another xlate from within an xlate?

      We want to create and possible reuse the xlates for segments where we can.

      How do you prevent code duplication?

      Thanks

    Viewing 1 reply thread
    • Author
      Replies
      • #83067
        Jim Kosloskey
        Participant

          Quick Answer – not cuurrently.

          A possible method might be to utiilize chaining or branching – although I have never used either for that purpose.

          So you would like to have a ‘library’ of canned Xlate sub-modules you can invoke from other modules?

          I think that would be a challenge to get done correctly since different vendors deploy sections of a given message differntly so a given routine might work for one integration but not for another. That might be more headache than it is worth.

          In my opinion code duplication is not inherently bad  despite what might be taught in today’s curriculum or be the current ‘trend’. Code duplication may properly occur and I submit in the case of Xlates that is probably the case.

          email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.

        • #83068
          Ashish Sharma
          Participant

            Thanks

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.