Hi Jerome,

the ?query request wont accept addition params. A good way to instruct your Processor to do something dynamic:

1- in the Processor file (eg. TSV.java) retrieve some params from local variables or file

2- pass in an additional attribtue in query that is mapped against a database column which contains this dynamic information. And when the data is returned in the Processor, use these values to carry out your desired operations.

HTH,
Syed

On 22/12/2011 10:16, Mariette wrote:
Hi everyone,

I want my plugin to run some basic command, to do so I implemented a processor. 
However I cannot figure out
how I can catch up parameters I send to the processor.
As example:
the request would be:

http://localhost:9000/martservice/results?query=<!DOCTYPE Query><Query client="webbrowser" processor="MyProcessor" limit="-1" 
header="0"><Dataset name="mart_db" config="mart_config"><Attribute name="mart__contig__main__dna"/></Dataset></Query>

MyProcessor write the dna value in fasta format and run a command that will 
format the data to be vizualised into biomart. However, I'd like to provide 
some other parameters to MyProcessor. I'd like to add some params:

http://localhost:9000/martservice/results?test=test_value&query=<!DOCTYPE Query><Query client="webbrowser" processor="MyProcessor" limit="-1" 
header="0"><Dataset name="mart_db" config="mart_config"><Attribute name="mart__contig__main__dna"/></Dataset></Query>

and catch the test value within my processor. How can I do so ?
Maybe I shouldn't use a processor, there is any other way to compute some 
calculation on the server side ?

thanks for your answer,
Jerome

_______________________________________________
Users mailing list
[email protected]
https://lists.biomart.org/mailman/listinfo/users

Reply via email to