Rife/Continuations execute with parameters
|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Rife/Continuations execute with parametersHi , We're in the process of plugin Rife/Continuations to our existing Tapestry frontend. It works great but I'm having a small issue. I'd like to be able to call subcontinuations with parameters. For example I'm doing a search in Flow 1, and I'd like to start Flow2 with the result of this search. I could not find anything to do it, so my question is, is it possible ? (I'm using the BasicContinuableRunner) Thanks for any thought / pointers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "rife-users" group. To post to this group, send email to rife-users@... To unsubscribe from this group, send email to rife-users-unsubscribe@... For more options, visit this group at http://groups.google.com/group/rife-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Rife/Continuations execute with parametersHi Lionel, sounds like you're doing cool stuff, please keep us posted! First, I really should release a new version of RIFE but never seem to be able to find the time. I strongly suggest that you download one of the nightly napshots and use the RIFE/Continuations jar that's in there. There have been some bug fixes for the standalone continuations support in there. For your question, you can use 'call-answer' continuations for what you describe. You can find examples in the tests here: http://svn.rifers.org/rife/trunk/src/unittests/com/uwyn/rife/continuations/ Hope this helps, Geert On 05 Jul 2008, at 09:23, Lionel Touati wrote: > > Hi , > > We're in the process of plugin Rife/Continuations to our existing > Tapestry frontend. It works great but I'm having a small issue. I'd > like to be able to call subcontinuations with parameters. For example > I'm doing a search in Flow 1, and I'd like to start Flow2 with the > result of this search. > > I could not find anything to do it, so my question is, is it > possible ? (I'm using the BasicContinuableRunner) > > Thanks for any thought / pointers -- Geert Bevin Terracotta - http://www.terracotta.org Uwyn "Use what you need" - http://uwyn.com RIFE Java application framework - http://rifers.org Music and words - http://gbevin.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "rife-users" group. To post to this group, send email to rife-users@... To unsubscribe from this group, send email to rife-users-unsubscribe@... For more options, visit this group at http://groups.google.com/group/rife-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Rife/Continuations execute with parametersHi Geert,
Thanks for the pointers. I'll do that. What I've found out is that parent / child continuation support does not seem to work. I've got an issue as the parent continuation id is never set in the child one. Do you think it'll be solved in the snapshot ( I want to use it to support back links). Regarding continuation parameter, I couldn't find anything that relates to my problem, probably because I'l lacking on how the internal of continuations work. What I've done to support it is the following: use com.uwyn.rife.continuations.ContinuationContext.getActiveContext().setCallAnswer(parameter) to set a parameter, and using the callanswer to to create the state object in the call state, and then modifying the callTargetRetriever to pass it as a parameter of the constructor for my child continuation class. It's a bit tedious but it works. Do you think it'd be possible to add a ... parameter to the call method that will be able to pass the parameters ? It'd make my life much easyer. Otherwise, it was really simple to hook Tapestry & Rife together, just a mater of creating several classes, and a tapestry service to make the thing work L. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "rife-users" group. To post to this group, send email to rife-users@... To unsubscribe from this group, send email to rife-users-unsubscribe@... For more options, visit this group at http://groups.google.com/group/rife-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Rife/Continuations execute with parametersHi Lionel, On 07 Jul 2008, at 09:25, Lionel Touati wrote: > Hi Geert, > > Thanks for the pointers. I'll do that. What I've found out is that > parent / child continuation support does not seem to work. I've got > an issue as the parent continuation id is never set in the child > one. Do you think it'll be solved in the snapshot ( I want to use it > to support back links). that's strange, I just went through some unit tests and the parent child continuation IDs are set correctly. Would you be able to isolate a test case with what you're seeing so that I can check what's going on for you. Best verify with the latest snapshot though, I can't remember all the fixes that went in over the last year ;-) > Regarding continuation parameter, I couldn't find anything that > relates to my problem, probably because I'l lacking on how the > internal of continuations work. What I've done to support it is the > following: > use > com > .uwyn > .rife > .continuations > .ContinuationContext.getActiveContext().setCallAnswer(parameter) to > set a parameter, and using the callanswer to to create the state > object in the call state, and then modifying the callTargetRetriever > to pass it as a parameter of the constructor for my child > continuation class. It's a bit tedious but it works. > > Do you think it'd be possible to add a ... parameter to the call > method that will be able to pass the parameters ? It'd make my life > much easyer. I can look into adding this, please file an issue in RIFE's jira, I'll try to make some time to look into it soon. > Otherwise, it was really simple to hook Tapestry & Rife together, > just a mater of creating several classes, and a tapestry service to > make the thing work Cool, I like this kind of stuff :-) Take care, Geert -- Geert Bevin Terracotta - http://www.terracotta.org Uwyn "Use what you need" - http://uwyn.com RIFE Java application framework - http://rifers.org Music and words - http://gbevin.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "rife-users" group. To post to this group, send email to rife-users@... To unsubscribe from this group, send email to rife-users-unsubscribe@... For more options, visit this group at http://groups.google.com/group/rife-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free Forum Powered by Nabble | Forum Help |
