hermannpencole / nifi-swagger-client

Client swagger for nifi with security
Apache License 2.0
38 stars 20 forks source link

Using FlowApi.scheduleComponents to start processor groups doesn't work #13

Open mario-deno opened 6 years ago

mario-deno commented 6 years ago

I'm using nifi-swagger-client:1.3.0.0 and FlowApi.scheduleComponents to run a processor group. Processor group contains a lot of processor and processor groups as well

With the attached code i get a valid response but processor group does't start in NIFI. I noted that if I add all components in body object it works fine.

As documentation stated "If the components in the request are not specified, all authorized components will be considered" so the expected behaviour is processor group should be started

`val client: ApiClient = new ApiClient().setBasePath("http://localhost:10135/nifi-api")

Configuration.setDefaultApiClient(client) val apiInstance: FlowApi = new FlowApi() val id = "21394497-5350-1357-0000-000075670e88" val body : ScheduleComponentsEntity = new ScheduleComponentsEntity() body.setId(id) val status = ScheduleComponentsEntity.StateEnum.RUNNING body.setState(status) vall result = apiInstance.scheduleComponents(id,body)`