Originally posted by Ivan Ng
Originally posted by Rentian Huang
####################################################################### Name: over_to_ibTPS# Purpose: <description># UPoC type: tps# Args: tps keyedlist containing the following keys:# MODE run mode ("start", "run" or "time")# MSGID message handle# ARGS user-supplied arguments:# <describe user-supplied args here>## Returns: tps disposition list:# <describe dispositions used here>#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}
Originally posted by David Caragay
run { # 'run' mode always has a MSGID; fetch and process it keylget args MSGID mh lappend dispList "OVER $mh" }
Originally posted by Anonymous
Originally posted by Elizabeth Wilson