Reply To: Need Help!

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Need Help! Reply To: Need Help!

#57823
Rentian Huang
Participant

This is a good concept. You can than place xlate on ThreadB and reduce the burden of ThreadA.

This is the tps.

Sam  8)

Code:


######################################################################
# Name: over_to_ibTPS
# Purpose:
# UPoC type: tps
# Args: tps keyedlist containing the following keys:
#       MODE    run mode (”start”, “run” or “time”)
#       MSGID   message handle
#       ARGS    user-supplied arguments:
#              
#
# Returns: tps disposition list:
#          

#

proc over_to_ibTPS { args } {
   keylget args MODE mode               ;# Fetch mode

   set dispList {} ;# Nothing to return

   switch -exact — $mode {
       start {
           # Perform special init functions
   # N.B.: there may or may not be a MSGID key in args
       }

       run {
   # ‘run’ mode always has a MSGID; fetch and process it
           keylget args MSGID mh
           lappend dispList “CONTINUE $mh”
           set msg [msgget $mh]
           set new_mh [msgcreate -recover $msg]
           lappend dispList “OVER $new_mh”
       }

       time {
           # Timer-based processing
   # N.B.: there may or may not be a MSGID key in args
       }

       default {
   error “Unknown mode ‘$mode’ in proto_to_ibTPS”
       }
   }

   return $dispList
}

Forum Statistics

Registered Users
5,116
Forums
28
Topics
9,291
Replies
34,426
Topic Tags
286
Empty Topic Tags
10