Github user markap14 commented on the pull request:

    https://github.com/apache/nifi/pull/210#issuecomment-189326513
  
    In StandardFlowSerializer, Line 314, we write out the Processor's Scheduled 
State. This is done so that when we restore the flow on restart, we know what 
state the Processor is in. So if we are adding new states to Scheduled State, 
we need to be sure to account for that there. Specifically, I think we should 
just update StandardFlowSerializer to write out a state of RUNNING if the state 
is STARTING and a state of STOPPED if it's STOPPING. Then we don't have to 
worry about the code that restores the state because what is written to the 
flow.xml is the state that we want to use when we restore the flow.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to