Hi there all..
I have a problem pertaining to call() and answer(). I have the following:
MasterElement{
initialize() {
localVar = getInput("someVarFromExternalUrlLinkCaller");
getDBStuffUsingVar (localVar );
}
processElement() {
if ( hasSubmission("form1") {
setOutput("passVar1" , MasterElement.getLocalVar() );
call("slaveElement1");
}
}
My problem is that once "answer" comes back from "slaveElement1", the initizlie() method does not have the input variable: someVarFromExternalUrlLinkCaller.
I tried defining output parameters in the slaveElement1 processing forms:
<output name="someVarFromExternalUrlLinkCaller"/> and then inside slaveElement1 I setOutput("someVarFromExternalUrlLinkCaller", .....)
but it seems that this does not work. The MasterElement.initialize () does not get back any definined input parameter from the callback slaveElement1.
Even moving the code from MasterElement.initialize() to MasterElement.processElement() still leaves me with the problem of not having the Input: someVarFromExternalUrlLinkCaller.
I played around with Object obj = call("slaveElment1") .... but I am still left with a problem of not being to maintian the value of someVarFromExternalUrlLinkCaller across one invocation of MasterElement to the next.
any ideas how to tackle this ?
_______________________________________________ Rife-users mailing list [email protected] http://lists.uwyn.com/mailman/listinfo/rife-users
