>does anybody know if it is possible to test service sequences (e.g. 
>HTTPService [1]) with the SequenceRunner [2]? For the moment, I was only able 
>to build these service sequences like this [3], which means making another 
>service call in the result handler of the previous service call ... and this, 
>unfortunately, results in a lot of code to write :(

Sure. The SequenceRunner basically knows about two types of things: object that 
implement ISequenceAction (which go and do something) and objects that 
implement ISequencePend (which are those that basically wait for something). We 
implemented a couple of each, ones that set a property or wait for a binding 
event, but the SequenceRunner isn't bound to these implementations.

The point being you can create your own implementations of these two interfaces 
to do anything you would like, including the HttpService work you mentioned and 
the SequenceRunner will happily execute them for you.

To get a basic idea, I would take a look at SequenceDelay.as, SequenceCaller.as 
and SequenceSetter.as. That should cover everything you need to implement.

Mike


Reply via email to