Eric van der Vlist wrote:
In the Java API spec, you say:
4.3. Declaring Inputs and Outputs The processor must declare its inputs and outputs. This is done in the default constructor by calling the addInputInfo and addOutputInfo methods and passing an object of type ProcessorInputOutputInfo.
However, that's not always the case and some processors (including the pipeline processor) are able to use dynamic inputs and outputs.
Yes, this text is out of date. I just checked in a change to the doc to make it less confusing.
In fact the API and documentation should be updated to reflect better the current possibilities:
o Mandatory static inputs / outputs o Optional static inputs / outputs o Dynamic inputs / outputs
I'll need the same kind of feature...
Can you point me on either a documentation or an example of implementation to get me started?
For dynamic inputs, it's easy: you just don't declare them in the constructor. But then you can still use the readInputXxx() API.
For dynamic outputs, you deal with it in your createOutput() method.
See JavaProcessor.java for examples. This processor has only dynamic inputs and outputs, except for the "config" input.
-Erik
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ orbeon-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/orbeon-user
