| 557 | } |
| 558 | |
| 559 | flow * create_getfile(nifi_instance * instance, flow * parent_flow, GetFileConfig * c) { |
| 560 | static const std::string first_processor = "GetFile"; |
| 561 | flow *new_flow = parent_flow == nullptr ? create_new_flow(instance) : parent_flow; |
| 562 | |
| 563 | // automatically adds it with success |
| 564 | auto getFile = new_flow->addProcessor(first_processor, first_processor); |
| 565 | |
| 566 | new_flow->setProperty(getFile, "Input Directory", c->directory); |
| 567 | new_flow->setProperty(getFile, "Keep Source File ", c->keep_source ? "true" : "false"); |
| 568 | new_flow->setProperty(getFile, "Recurse Subdirectories", c->recurse ? "true" : "false"); |
| 569 | |
| 570 | return new_flow; |
| 571 | } |
| 572 | |
| 573 | processor *add_processor(flow *flow, const char *processor_name) { |
| 574 | NULL_CHECK(nullptr, flow, processor_name); |
no test coverage detected