Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
NIFI-1769: Implemented SSE with KMS. #1126
Validating the correct combination of property choices seems awkward and unnecessary in onTrigger, as these property selections are not being evaluated from Expression Language. Instead, how about implementing a customValidate() method to make sure the properties are sensible before the processor may be started? I recommend taking a look at AbstractAWSProcessor::customValidate, both for how it validates and for how it incorporates validation errors from it's super() type.
After validating the properties, I think the onTrigger behavior can be much simpler, maybe just checking to add the key management params.