streampipes icon indicating copy to clipboard operation
streampipes copied to clipboard

Clean up definitions in code of processing element types

Open bossenti opened this issue 1 year ago • 0 comments

Body

At multiple places in our codebase, we need to distinguish the different types of processing elements (adapter, data processors, and sinks) and other StreamPipes entities/concepts.

For this purpose, there are already some enums defined that try to model this consistently, e.g., PeType and SpServiceTagPrefix. However, they are not really used consistently and have some intersections. In addition, we have some legacy identifiers like sepa hard-coded across our codebase.

This issue seeks towards a unification of the existing concepts and the removal of hard-coded references. A possible solution would be to introduce a joined enum in streampipes-model that supports also old/legacy values with a custom function. This allows us to replace hard-coded values step by step and in the end remove the legacy usage completely.

StreamPipes Committer

I acknowledge that I am a maintainer/committer of the Apache StreamPipes project.

bossenti avatar Oct 19 '23 07:10 bossenti