Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent processors from overlapping #248

Open
omkaringale opened this issue Dec 17, 2020 · 2 comments
Open

Prevent processors from overlapping #248

omkaringale opened this issue Dec 17, 2020 · 2 comments
Milestone

Comments

@omkaringale
Copy link

  • Nipyapi version: 0.14.3
  • NiFi version: 1.12.1
  • NiFi-Registry version: 0.8.0
  • Python version: 3.8
  • Operating System: Windows 10

Description

Trying to prevent processors from overlapping when I run the code. I want the code to detect if there is already a processor in the location.

What I Did

processor_list = ['GetHTTP','EvaluateJsonPath','AttributesToJSON','PutMongo']
for key,proc in enumerate(processor_list):
            location_y = 300*i
            location_x = 500*(key+1)
            location = (location_x,location_y)

Urgency

Trying to automate a process flow which is still in development phase, so not that urgent

@Chaffelson
Copy link
Owner

Quite a while back I made a function for this, but forgot to bring it into the main project - actually I'm glad you reminded me.

def suggest_object_position(flow_name):

That's where it is on the current branch if you want to use it directly now, I'll make a note to pull it into the next feature release.

@Chaffelson Chaffelson added this to the 0.17.0 milestone Jan 14, 2021
Chaffelson added a commit that referenced this issue Jan 28, 2021
Adds canvas.suggest_object_position to provide the next available slot for a new canvas object
@Chaffelson
Copy link
Owner

@omkaringale do you have time to look at the implementation I have suggested here to see if it helps your usecase?

@Chaffelson Chaffelson modified the milestones: 0.17.0, 0.20 Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants