I want to use the cron event to periodically syncronize the wave where
I put my robot with an external app. The need is to add a simple text
blip in the wave for each action registered from the external app.

I use Java.

I have two questions:

1. I have seen that my robot cron event starts regularly if the robot
is placed in a single wave (for example every 30 secs). But if I put
the robot in two or more waves I can see only one call and not one
call for each wave.. Is it correct?

2. To use cron and update my waves I found and use this code:

        ....
        if (bundle.getEvents().size() == 0) {
          LOG.warning("Cron event now");
        ....

and it's works (i can see the log in appengine) but when I try to get
the wavelet and append my message:

          Wavelet wavelet = bundle.getWavelet();
          Blip blip = wavelet.appendBlip();
          TextView textnew = blip.getDocument();
          textnew.append("30 secs message...");

the function getWavelet() value is NULL.
How can I get wavelet data from wave who contains the robot instance?

Thank you
Fabrizio Porciani
Florence, ITALY

--

You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.


Reply via email to