Huagen, NiFi provides the concept of Prioritizers to determine how data is Prioritized / sorted. You can right-click on a connection and click Configure. From the Settings tab, you can drag and drop to select which prioritizers are used and in what order. For instance, you can drag the First In First Out Prioritizer from the list of Available Prioritizers into the list of Selected Prioritizers. For more information, see [1].
Thanks -Mark [1] http://nifi.apache.org/docs/nifi-docs/html/user-guide.html#settings > On Jun 5, 2016, at 9:23 PM, Huagen peng <huagen.p...@gmail.com> wrote: > > Hi, > > I notice that the order of execution in an incoming queue is not FIFO (first > in first out). For example, I have a ExecuteStreamCommand processor, which > at one point may have more than 20 flowflies waiting. It appears that the > processor just randomly select a flowfile from the queue after it finishes > one. This leaves some flowfile waiting in the queue for a wrong time. I > would like the processor to run the flowfiles FIFO. Is there anyway to > specify the order of execution? > > Thanks, > > Huagen