[
https://issues.apache.org/jira/browse/NIFI-5875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16714344#comment-16714344
]
ASF GitHub Bot commented on NIFI-5875:
--------------------------------------
Github user ijokarumawak commented on the issue:
https://github.com/apache/nifi/pull/3205
@wselwood Thanks for the update, looks much better! For the even better
readability, can we improve structure a little bit more organized? How about
something like this?
Example output:

---
(As plain text)
PriorityAttributePrioritizer: Given two FlowFiles that both have a
"priority" attribute, the one that has the highest priority value will be
processed first.
- Note that an UpdateAttribute processor should be used to add the
"priority" attribute to the FlowFiles before they reach a connection that has
this prioritizer set.
- If only one has that attribute it will go first.
- Values for the "priority" attribute may be alphanumeric, where "a" is a
higher priority than "z", and "1" is a higher priority than "9", for example.
- If "priority" attribute cannot be parsed as a long, unicode string
ordering will be used. For example: "99" and "100" will be ordered so the
flowfile with "99" comes first, but "A-99" and "A-100" will sort so the
flowfile with "A-100" comes first.
> PriorityAttributePrioritizer documentation is not clear.
> --------------------------------------------------------
>
> Key: NIFI-5875
> URL: https://issues.apache.org/jira/browse/NIFI-5875
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Documentation & Website
> Reporter: Wil Selwood
> Priority: Major
>
> The documentation for the PriorityAttributePrioritizer is not particularly
> clear. The First part says highest goes first but then the example at the end
> says that 1 would go before 9. This could be clearer.
> I've just had to go look up the code to figure out what it was doing.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)