After upgrading a standalone or hybrid Mule application from a 4.6.x runtime to Mule 4.8 or later Mule Minor versions, a flow state read from property file does not get updated.
Steps to reproduce:
initialState from an external property file (for example, flow.state=started).This does not apply to CloudHub 1.0 or CloudHub 2.0. Those deployment models do not expose the Runtime Manager Agent REST API, and they do not persist flow start/stop state the same way as standalone and hybrid.
The behaviour is controlled by the Mule feature flag mule.honour.persisted.flow.state, which is available and enabled by default since Mule Runtime 4.8.0 for applications whose mule-artifact.json minMuleVersion is 4.8.0 or higher. When the flag is enabled, the runtime uses the last recorded flow state in flows.deployment.properties and does not re-apply initialState on restart.
To make initialState read from the properties file on every restart, as it did on Mule 4.6.x, disable the feature flag on the standalone or hybrid runtime following the steps below.
mule.honour.persisted.flow.state to false.
-M-Dmule.honour.persisted.flow.state=falsewrapper.conf: add wrapper.java.additional.N=-Dmule.honour.persisted.flow.state=false (use the next unused N)initialState in the external property to stopped, then restart the application.
005460263

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.