Loading

Flow State Not Reflecting the Updated Configuration after App Restart in Mule Runtime on Standalone and Hybrid

Udgivelsesdato: Sep 18, 2026
Beskrivelse

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:

  1. A flow uses initialState from an external property file (for example, flow.state=started).
  2. Change that value to stopped and restart the application.
  3. Application logs still show the flow started after restart and the Listener/Scheduler is invoking.
  4. If you query the Runtime Manager Agent applications API, the flow can report status STARTED while defaultStatus is STOPPED.

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.

Løsning

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.

  1. Stop the Mule runtime.
  2. Go to <MULE_HOME>\.mule\<app-name> and delete the deployment-properties folder. This is important step if Mule app was already deployed without setting the below featured flag to false. Otherwise, skip this step.
  3. Set the system property mule.honour.persisted.flow.state to false.
    • Option 1: Command line / startup script: add -M-Dmule.honour.persisted.flow.state=false
    • Option 2: wrapper.conf: add wrapper.java.additional.N=-Dmule.honour.persisted.flow.state=false (use the next unused N)
  4. Start the Mule runtime (a full runtime restart is required; restarting only the application is not enough to pick up the JVM property).
  5. Set the flow initialState in the external property to stopped, then restart the application.
  6. Confirm the flow does not start and that a Scheduler in the flow does not fire. The Runtime Manager Agent applications API should show both status and defaultStatus as STOPPED.

 

Vidensartikelnummer

005460263

 
Indlæser
Salesforce Help | Article