Hello again!
I have a long task that needs to be done. For example when all departments sends their reports my system should automaticaly call method to create reconciliated and validated report. How can I execute a long process in smalltalk. How can I see its state from seaside? I am working with Cheers, Oleg _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Hey Oleg,
take one thing at the time. For monitoring state periodically you can use the 'periodical' from prototype/scriptaculous. You can see an example of periodical at the scriptaculous test in your seaside image. Start a process is trivial no matter how much it takes. Can be something like? reportUpdaterProcess := [[Delay forDuration: 600 seconds. model hasRequisitesToProcessReport ifTrue:[model processReport]] repeat] fork or any oter method you execute periodically in a process. And I supouse you'll have to make your own vars representing state somewhere in your model to be able to query them from time to time using for example that periodical. cheers, Sebastian > -----Mensaje original----- > De: [hidden email] > [mailto:[hidden email]] En nombre > de Oleg Richards > Enviado el: Viernes, 07 de Septiembre de 2007 16:30 > Para: [hidden email] > Asunto: [Seaside] How to periodically call method, or execute process > > Hello again! > > I have a long task that needs to be done. For example when > all departments sends their reports my system should > automaticaly call method to create reconciliated and > validated report. How can I execute a long process in > smalltalk. How can I see its state from seaside? I am working with > > Cheers, > Oleg > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Hi, is there an IRC channel for Seaside? If so, could someone tell me the server and channel?
Thanks, -Conrad
_______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Sebastian Sastre-2
Sorry, but saying this: > reportUpdaterProcess := [[Delay forDuration: 600 seconds. > model hasRequisitesToProcessReport > ifTrue:[model processReport]] I really mean this: reportUpdaterProcess := [[(Delay forDuration: 600 seconds) wait. model hasRequisitesToProcessReport ifTrue:[model processReport]] repeat ] fork cheers, Sebastian Sastre > -----Mensaje original----- > De: [hidden email] > [mailto:[hidden email]] En nombre > de Sebastian Sastre > Enviado el: Sábado, 08 de Septiembre de 2007 09:39 > Para: 'Seaside - general discussion' > Asunto: RE: [Seaside] How to periodically call method, or > execute process > > Hey Oleg, > > take one thing at the time. For monitoring state > periodically you can use the 'periodical' from > prototype/scriptaculous. You can see an example of periodical > at the scriptaculous test in your seaside image. > > Start a process is trivial no matter how much it takes. > Can be something like? > > reportUpdaterProcess := [[Delay forDuration: 600 seconds. > model hasRequisitesToProcessReport > ifTrue:[model processReport]] > repeat] fork > > or any oter method you execute periodically in a process. And > I supouse you'll have to make your own vars representing > state somewhere in your model to be able to query them from > time to time using for example that periodical. > > cheers, > > Sebastian > > > > > > -----Mensaje original----- > > De: [hidden email] > > [mailto:[hidden email]] En > nombre de Oleg > > Richards Enviado el: Viernes, 07 de Septiembre de 2007 16:30 > > Para: [hidden email] > > Asunto: [Seaside] How to periodically call method, or > execute process > > > > Hello again! > > > > I have a long task that needs to be done. For example when all > > departments sends their reports my system should automaticaly call > > method to create reconciliated and validated report. How > can I execute > > a long process in smalltalk. How can I see its state from > seaside? I > > am working with > > > > Cheers, > > Oleg > > _______________________________________________ > > Seaside mailing list > > [hidden email] > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Conrad Taylor
On Sep 8, 2007, at 6:43 AM, Conrad Taylor wrote: > Hi, is there an IRC channel for Seaside? If so, could someone tell > me the server and channel? > On http://www.squeak.org/Community Have a question that you need answered quickly? Would you like to meet with other squeakers around the world? A great place to participate in longer-term discussions is the IRC channel on the "#squeak" channel at freenode.net. Stop by and say "Hi!" > Thanks, > > -Conrad > > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |