Right now, we are using processDefinitionsToImport, alreadyImportedProcessDefinitions and currentIndex to handle the import cycle via process definitions in the DefinitionBasedImportHandler. However, this is makes the whole logic very complicated and also the import gets stuck in one process definition after one round. Instead, we can just use a ringbuffer logic to cycle through the porcess definitions.
- use ringbuffer datastructure to cycle through the definitions in the definition based import
- the definition based import should cycle through the definition list until no process definition had new data and only then do backoff