nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudeep mishra <sudeepshekh...@gmail.com>
Subject Re: Send parameters while using getmongo processor
Date Thu, 04 Feb 2016 15:41:02 GMT
Thanks for the feedback Bryan.

Yes I need a processor similar to what you described.

On Thu, Feb 4, 2016 at 7:38 PM, Bryan Bende <bbende@gmail.com> wrote:

> Hi Sudeep,
>
> From looking at the GetMongo processor, I don't think this can be done
> today. That processor is meant to be a source processor that extracts data
> from Mongo using a fixed query.
> It seems to me like we would need a FetchMongo processor with a Query
> field that supported expression language, and you could set it to
> ContractNumber = ${flow.flile.contract.number}
> Then incoming FlowFiles would have "flow.file.contract.number" as an
> attribute and it would fetch documents matching that.
>
> I don't know that much about MongoDB, but does that sound like what you
> need?
>
> -Bryan
>
>
> On Thu, Feb 4, 2016 at 8:00 AM, sudeep mishra <sudeepshekharm@gmail.com>
> wrote:
>
>> Hi,
>>
>> I have following schema of records in MongoDB.
>>
>> {
>>         "_id" : ObjectId("56b1958a1ebecc0724588c39"),
>>         "ContractNumber" : "ABC87gdtr53",
>>         "DocumentType" : "TestDoc",
>>         "FlowNr" : 3,
>>         "TimeStamp" : "03/02/2016 05:51:09:023"
>> }
>>
>> How can I query for a particular contract by 'ContractNumber' using
>> getmongo processor? I want to dynamically pass the value of ContractNumber
>> and get back the results.
>>
>>
>> Thanks & Regards,
>>
>> Sudeep
>>
>
>


-- 
Thanks & Regards,

Sudeep

Mime
View raw message