ASF GitHub Bot commented on NIFI-4827:

Github user mattyb149 commented on a diff in the pull request:

    --- Diff: 
    @@ -236,12 +254,33 @@ public void onTrigger(final ProcessContext context, 
final ProcessSession session
    -        final Document query = context.getProperty(QUERY).isSet()
    -                ? 
 : null;
    +        final Document query;
    +        if (!context.hasIncomingConnection() && 
!context.getProperty(QUERY).isSet()) {
    +            query = Document.parse("{}");
    --- End diff --
    I thought this was going to be a validation error? It can be done in 
OnScheduled, see ExecuteSQL for an example. Otherwise how would the user know 
that his/her configuration won't actually perform any work?

> Make GetMongo able to use flowfiles for queries
> -----------------------------------------------
>                 Key: NIFI-4827
>                 URL: https://issues.apache.org/jira/browse/NIFI-4827
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Mike Thomsen
>            Assignee: Mike Thomsen
>            Priority: Minor
> GetMongo should be able to retrieve a valid query from the flowfile content 
> or allow the incoming flowfile to provide attributes to power EL statements 
> in the Query configuration field. Allowing the body to be used would allow 
> GetMongo to be used in a much more generic way.

This message was sent by Atlassian JIRA

Reply via email to