From my control script
^addtopic(~introductions)
$userprompt = ^"%user: >"
$botprompt = ^"LISA: "
$cs_control_main = ~swgcontrol
$cs_control_post = ~swgpost
table: defaultbot (^name)
^createfact(^name defaultbot defaultbot)
DATA:
lisa
topic: ~swgpost system () # should be called for post processing.
t: (^query(direct_v ? chatoutput ? -1 ? @9 ))
^log( post processing with weird matcher)
t: ( ) ^log( in post process man\n)
t: () ^log( in post process dude\n)
^log( ^"prepending oobOutData to output: ^jsontree($$oobOutData) ")
^postprintbefore($$oobOutData);
topic: ~swgcontrol system ()
u: PARSE_OOB_DATA (\[ _* )
$$oobInData = ^jsonparse( transient NOFAIL _0)
$$oobInDataString = ^jsontree($$oobInData)
^logit(info ^"jsontree: $$oobInDataString ")
$$channelData = $$oobInData.channelData
^logit(info ^"channelData: $$channelData")
u: SETUP_OOB_OUT_JSON ()
^logit( info ^"creating oobOutData object!")
$$oobOutData = ^jsoncreate(object)
if($$channelData){
$$oobOutData.channelData = $$channelData
}
u: () # main per-sentence processing
^logit ( info ^" ===== new volley: cs_control_main: $cs_control_main cs_control_post: $cs_control_post ====" )
In this scenario, No processing happens at all.
If I change the $cs_control_main to be ~control then I get the log info to show up in the control topic and it shows the value of $cs_control_main to be ~control but there is no value for $cs_control_post.
In either scenario, I never get anything to happen in the post processing topic.
I have tried stopping and restarting the server with no change. I always do a :build Lisa0. I have verified that changes in the control script are getting picked up by modifying the log text which I am seeing output in the log file.
Are there things that will cause $cs_control_post to be ignored or overwritten?
Stephen G.