Thanks. Just a slip of the fingers. These are the two things I tried (written more carefull)
kSession.getGlobal().set("statusPollInterval", "2s")
kRuntime.setGlobal("statusPollInterval", "2s")
The second "worked" in that it seems to have set a global variable. However when I executed the process I got an "Unexpected global [statusPollInterval]"
Any ideas?
Richard