Thomas,
We use a protocol:UPOC thread to generate messages at at regular intervals. In the Properties window of the thread you can specify a “Read TPS” proc. This is a TPS style proc that creates the content of the message. All of your message generation code goes in the “time {” section of the TPS proc instead of the usual “run {” section. The heart of this code boils down to:
time {
# Create and CONTINUE a new message
set msgtext “Whatever you want”
set newmh [msgcreate -class engine -type data]
msgset $newmh $msgtext
lappend dispList “CONTINUE $newmh”
}
You can route messages from this thread just like messages from any other inbound thread. Hope this helps.
- Mark Thompson
HealthPartners