How to determine when an xlate has processed all the segment

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf How to determine when an xlate has processed all the segment

  • Creator
    Topic
  • #53336
    Rich Durkee
    Participant

      If I want to do something in an Xlate after the last segment has been processed, how can I determine when to do that? It seems like the flow of segments through the Xlate is to read in a segment, execute all the statements possible based on the logic of the Xlate, then read the next segment and do the same thing until all the segments have been processed. And then the Xlate exits. Or is that what post Xlate tcl procs are for? Because there IS no way to determine the end of message in an Xlate.

      Thanks

    Viewing 1 reply thread
    • Author
      Replies
      • #77315
        James Cobane
        Participant

          Richard,

          I believe the Xlate processes the statements in order as they are defined within the Xlate.

        • #77316
          Robert Kersemakers
          Participant

            Hi Rich,

            In my opinion there is no ‘flow’ in an Xlate. You have a inbound message and are taking fields from this inbound message and put them in an outbound message. If there are repeating segments, you can iterate through these segments and after the iteration you know you have processed these segments. There is no specified order in which you need to iterate through segments or in which you need to process fields of segments.

            But it’s advisable to do it in the order of the segments and fields as they are defined in either the inbound or outbound message.

            So there is also no ‘end of message’. You get the complete message and process it.

            Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

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