Mirth Connect 4.1.1 Released!

Mirth Connect 4.1.1 is now available as an appliance update and on our GitHub page. This release contains modifications to the Welcome to Mirth Connect screen and two fixed defects. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

A few questions about scope

  • Filter
  • Time
  • Show
Clear All
new posts

  • A few questions about scope


    Could anybody remind me what the different scopes in mirth mean?
    what exactly is the connector, channel, global and response?

    Could you also explain to me how to use the global variable/functions scripts that are new in v1.6?

    Finally, I would like to make a message flow like this:
    1. File reader -> channel writer
    2. channel reader -> filter good/bad messages -> treatment of PID segment -> channel writer
    3. channel reader (multiple) -> filter according to message type -> treat the rest of the message depending on type -> database writer
    What would be the best scope for variables set in point 2. I thought about global scope, but I was afraid that two incoming messages would create problems and the second message would overwrite data from the first prior to data insertion into the database.

    Thank you


  • #2
    Re:A few questions about scope

    I would like to know the same thing. Someone please answer.


    • #3
      Re:A few questions about scope

      Rather than creating three separate channels you should create a single channel:

      Source Connector: File Reader
      Source Filter: Good/bad messages
      Source Transformer: Treat PID segment

      Destination Connector(s) (one for each outgoing destination, i.e db or llp, or based on type)
      Destination Filter: Filter based on message type
      Destination Transformer: Any transformations for that type

      For example, you can have 3 destinations, one for ADT-A01, one for ADT-A04 and one for ADT-A31. You can filter on the type on the destination connector.

      Please see for clarification on the scope.
      Chris Lang


      • #4
        Re:A few questions about scope

        By the way, we are on PDT if you are wondering why you never get a response in the IRC channel.
        Brendan Haverlock | Mirth Software Engineer | Mirth Corporation