USER-SUPPLIED ARGUMENTS

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf USER-SUPPLIED ARGUMENTS

  • Creator
    Topic
  • #52980
    Ron Leonard
    Participant

      I want to pass a user supplied argument such as

      {SEGS MSH|EVN|PID|ZCE} to pass just these segments.

      I already have a TPS Tcl called pass_segs that will do it.

      I have setup a route in my thread using an xlate with a Post Proc of pass_segs.

      Where do I setup my user supplied argument to get it passed to the TCL?

      Thanks,

      Ron

    Viewing 7 reply threads
    • Author
      Replies
      • #76153
        Brent Fenderson
        Participant

          Pass them as a list to your proc. I’ve attached some examples. argument would look like {SEGS {MSH EVN PID ZCE}}

          Ron Leonard wrote:

          I want to pass a user supplied argument such as

          {SEGS MSH|EVN|PID|ZCE} to pass just these segments.

          I already have a TPS Tcl called pass_segs that will do it.

          I have setup a route in my thread using an xlate with a Post Proc of pass_segs.

          Where do I setup my user supplied argument to get it passed to the TCL?

          Thanks,

          Ron

        • #76154
          Ron Leonard
          Participant

            Hi Brent,

            I have a tcl similar to yours that works in another thread.

            I am setting up a new thread doing the same thing, but I don’t know where to put the list to pass to the proc.

            Where is the list placed? I cannot find it in the working thread.

            Thanks,

            Ron

          • #76155
            Brent Fenderson
            Participant

              Ron, This will go in the args section of the tps proc list

            • #76156
              Ron Leonard
              Participant

                Hi Brent,

                I am still confused. I don’t believe your two tcl’s or mine have anything hardcoded the tcl indicating what segments to pass. Is this true?

                So, since the tcl can read a user supplied argument from an outside source being the ‘args section of the tps proc list’. Where is this outside source to put {SEGS {MSH EVN PID ZCE}}.

                I’ve never done this before, sorry for the confusion.

                Let me know if I am on the right or wrong path.

                Any example would help.

                Thanks,

                Ron

              • #76157
                Jim Kosloskey
                Participant

                  Ron,

                  Go to the NetConfig.

                  In the NetConfig there are a number of places to place that proc. Witht he Exception of TrxID determination you can pass arguments in most all of those places.

                  If you have already placed the proc somewhere then when you ‘Edit’ that specification you wuill get a container that will have a place to spcify the proc name, Java Class, and Args. You would place your keyed list in the Args.

                  If you have not placed the proc yet then if I understand what your proc is to do (remove segments) then that would could be either on the routing (Procs for Raw, Post for Xlate) or on the Outbound Tab, TPS Outbound Data field of the Outbound thread.

                  If you would like to chat about this off line email me.

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

                • #76158
                  Charlie Bursell
                  Participant

                    You can pass args to TRXID in 5.8

                    Passing USER Args as a keyed list is done by convention only

                  • #76159
                    Jim Kosloskey
                    Participant

                      Charlie,

                      I had forgotten passing args to TrxID was added to 5.8 – good stuff.

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

                    • #76160
                      Ron Leonard
                      Participant

                        Jim,

                        Thank you so much! With your help I finally saw that edit button within the Proc (within the Post Procs).

                        I have now added it, tested it, and it works just as expected.

                        Thanks again,

                        Ron

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