pvillard31 opened a new pull request, #9471:
URL: https://github.com/apache/nifi/pull/9471

   # Summary
   
   [NIFI-13948](https://issues.apache.org/jira/browse/NIFI-13948) - NiFi CLI - 
Add command pg-list-processors
   
   Add a CLI command to recursively list the processors in a given process 
group. Also add the option to specify a filter that expects either 'source' or 
'destination' as value.
   - A source processor is defined as a processor that has no input 
relationship (unless this is a self relationship loop) and has at least one 
output relationship.
   - A destination processor is defined as a processor that has no output 
relationship (unless this is a self relationship loop) and has at least one 
input relationship.
   
   ````
   ./bin/cli.sh nifi pg-list-processors -p nifi-cli.properties -pgid 
b5e0eb3a-0192-1000-6996-53ab1c85211b --filter foo
   
   ERROR: Error executing command 'pg-list-processors' : Filter must be either 
'source' or 'destination'
   ````
   
   ````
   ./bin/cli.sh nifi pg-list-processors -p nifi-cli.properties -pgid 
b5e0eb3a-0192-1000-6996-53ab1c85211b
   
   #   Name               ID                                     Type           
    Run Status   Version
   -   ----------------   ------------------------------------   
----------------   ----------   --------------
   1   GenerateFlowFile   b9d523d0-0192-1000-c29c-09ffc29ed540   
GenerateFlowFile   STOPPED      2.0.0-SNAPSHOT
   2   InvokeHTTP         da167d70-0192-1000-b4bd-68d1ec5548f6   InvokeHTTP     
    STOPPED      2.0.0-SNAPSHOT
   3   InvokeHTTP         da0b15ad-0192-1000-20a8-71941d294826   InvokeHTTP     
    STOPPED      2.0.0-SNAPSHOT
   4   LogMessage         d94a6f80-0192-1000-1c0d-5eb6427bf418   LogMessage     
    RUNNING      2.0.0-SNAPSHOT
   5   PutFile            da0b5a18-0192-1000-d977-5003f7219ab3   PutFile        
    STOPPED      2.0.0-SNAPSHOT
   ````
   
   ````
   ./bin/cli.sh nifi pg-list-processors -p nifi-cli.properties -pgid 
b5e0eb3a-0192-1000-6996-53ab1c85211b --filter source
   
   #   Name               ID                                     Type           
    Run Status   Version
   -   ----------------   ------------------------------------   
----------------   ----------   --------------
   1   GenerateFlowFile   b9d523d0-0192-1000-c29c-09ffc29ed540   
GenerateFlowFile   STOPPED      2.0.0-SNAPSHOT
   2   InvokeHTTP         da0b15ad-0192-1000-20a8-71941d294826   InvokeHTTP     
    STOPPED      2.0.0-SNAPSHOT
   ````
   
   ````
   ./bin/cli.sh nifi pg-list-processors -p nifi-cli.properties -pgid 
b5e0eb3a-0192-1000-6996-53ab1c85211b --filter destination
   
   #   Name      ID                                     Type      Run Status   
Version
   -   -------   ------------------------------------   -------   ----------   
--------------
   1   PutFile   da0b5a18-0192-1000-d977-5003f7219ab3   PutFile   STOPPED      
2.0.0-SNAPSHOT
   ````
   
   # Tracking
   
   Please complete the following tracking steps prior to pull request creation.
   
   ### Issue Tracking
   
   - [ ] [Apache NiFi Jira](https://issues.apache.org/jira/browse/NIFI) issue 
created
   
   ### Pull Request Tracking
   
   - [ ] Pull Request title starts with Apache NiFi Jira issue number, such as 
`NIFI-00000`
   - [ ] Pull Request commit message starts with Apache NiFi Jira issue number, 
as such `NIFI-00000`
   
   ### Pull Request Formatting
   
   - [ ] Pull Request based on current revision of the `main` branch
   - [ ] Pull Request refers to a feature branch with one commit containing 
changes
   
   # Verification
   
   Please indicate the verification steps performed prior to pull request 
creation.
   
   ### Build
   
   - [ ] Build completed using `mvn clean install -P contrib-check`
     - [ ] JDK 21
   
   ### Licensing
   
   - [ ] New dependencies are compatible with the [Apache License 
2.0](https://apache.org/licenses/LICENSE-2.0) according to the [License 
Policy](https://www.apache.org/legal/resolved.html)
   - [ ] New dependencies are documented in applicable `LICENSE` and `NOTICE` 
files
   
   ### Documentation
   
   - [ ] Documentation formatting appears as expected in rendered files
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to