RE: Wait for User Input

Hi Ari,

Sounds like you are trying to embed XProc inside a web app, and do web app
round-trips. Waiting for console input is quite different from waiting for
input from a browser. I have played with the Cocoon framework that had a
continuation mechanism for this, but that involved a complex mechanism of
preserving processing state. Usually it is way easier to just recall some
app code with additional parameters, and decide based on that in which
state you actually are. Bit like a single JSP or XQY that does both search
input and showing of search results, stuff like that.

Did you look into using ServleX for this?

Kind regards,


*Van:* Romain Deltour []
*Verzonden:* donderdag 16 mei 2013 9:13
*Aan:* "Ari Nordström"
*Onderwerp:* Re: Wait for User Input

I've never written one but I've thought about the possibility many times. I
believe that nothing in the spec disallows a step to wait for an external
event to complete. I also believe that it might work OK out of the box in
some editing processors (e.g. Calabash), since I'm not aware of any timeout
mechanism or anything else of the like.

Could you please report any results of further experiments ?


On 16 mai 2013, at 07:32, "Ari Nordström" <>


Has anyone done a pipeline that will wait for user input? For example,
let's say you start an XForm with a http-request of some description and
then wait for the results of that XForm so you can use it in a later step?
Or would you have to end that pipeline and start a new one for the results?

I've been banging my head against the virtual wall with this. The closes
I've come when googling for what others have done was a post from Kurt
Cagle that basically suggested such an extension, a few years back.

Any ideas and input would be greatly appreciated.

All the best,

Ari Nordström

Ari Nordström
Senior Consultant

Condesign Operations Support AB
Phone +46 31 744 17 91
Mobile +46 736 000 333

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.

Condesign AB, 556255-8313, säte Göteborg; Condesign Automation AB,
556271-3676, säte Göteborg; Condesign Engineering AB, 556469-2092 säte
Göteborg; Condesign Infocom AB, 556453-7172, säte Ljungby; Condesign
InfoProductions AB, 556385-4255, säte Linköping; Condesign Operations
Support AB, 556307-1231, säte Göteborg.

Received on Thursday, 16 May 2013 07:44:33 UTC