Hi folks,

I'm trying to write a quick python InvokeProcessorScript where I need to
iterate over all Dynamic Properties from the processor to select just a few
and I'm having some difficulties with the class types between Jython and
Java.

Can someone show me how to iterate over "context.properties"  to get each
PropertyDescriptor?

I'd like do something like this:








*for prop in context.properties:          name = prop.name
<http://prop.name>          value =
context.getProperty(prop).evaluateAttributeExpressions(flowFile).getValue()
        self.log.info <http://self.log.info>("attr {name}:
{value}".format(name=name, value=value))          if prop.dynamic:
  if name in lista and re.search(value, filename):
attrMap['TipoArquivo'] = name            else:              attrMap[name] =
value*

Cheers

Reply via email to