ignalf
12th April 2006, 11:58
I've tried to create a AFS script for this sessions. But after the first api-call the session doesn't do anything anymore, and I've to kill it. This is te afs-script I use:
stpapi.handle.subproc("tpppc2811m000", "tpppc2131m000", "add")
stpapi.handle.subproc("tpppc2131m000", "tpppc2111m000", "add")
stpapi.application.option("tpppc2131m000", 1, 1, r.mess)
...
and the standard code in tpppc2811m000 is:
init.form:
.....
run.processes()
.....
function run.processes()
{
...
old.process = called.process
on case called.process
...
case "2131":
if int.fina then
called.process = last.process
else
last.process = "2131"
if not processno.2131 then
processno.2131 =
activate("tpppc2131m000")
endif
switch.to.process(processno.2131)
endif
break
case "2132":
....
...
}
How can i solve it?
thanks really.
stpapi.handle.subproc("tpppc2811m000", "tpppc2131m000", "add")
stpapi.handle.subproc("tpppc2131m000", "tpppc2111m000", "add")
stpapi.application.option("tpppc2131m000", 1, 1, r.mess)
...
and the standard code in tpppc2811m000 is:
init.form:
.....
run.processes()
.....
function run.processes()
{
...
old.process = called.process
on case called.process
...
case "2131":
if int.fina then
called.process = last.process
else
last.process = "2131"
if not processno.2131 then
processno.2131 =
activate("tpppc2131m000")
endif
switch.to.process(processno.2131)
endif
break
case "2132":
....
...
}
How can i solve it?
thanks really.