Although data state is not maintained by Reactors from transaction-to-transaction, the names and deployment settings of Decision Services deployed to Corticon Server are maintained. The file ServerState.xml, located in [CORTICON_WORK_DIR]\{INP|SER}\CcServerSandbox\DoNotDelete, maintains a record of the Ruleflows and deployment settings currently loaded on Corticon Server for each Decision Service. If Corticon Server inadvertently shuts down, or the container crashes, then this file is read upon restart and the prior Server state is re-established automatically.

How to turn off server state persistence

By default, Corticon Server automatically creates and maintains the ServerState.xml document during normal operation, and reads it during restart. This allows it to recover its previous state in the event of an unplanned shutdown (such as a power failure or hardware crash)

However, Corticon Server can also operate without the benefit of ServerState.xml, either by not reading it upon restart, or by not creating/maintaining it in the first place. In this mode, an unplanned shutdown and restart results in the loss of any settings made through the Corticon Web Console. For example, any properties settings made, or .eds files deployed using the Console, will be lost. The Server will not auto reload the Decision Services because there is no ServerState.xml; however, from within the Web Console, the Decision Services will be in an undeployed state and can be redeployed from the Web Console.

To determine whether Corticon Server will persist its state inside of the ServerState.xml, set the following property in your brms.properties file to true or false. By default this feature is turned on. Default value is true.

com.corticon.server.serverstate.persistchanges=true

To determine whether Corticon Server will initially load the ServerState.xml file to restore the Corticon Server to its previous state, set the following property in your brms.properties file to true or false. Default value is true

com.corticon.server.serverstate.load=true 

You can customize Corticon Server's state and restart behavior by combining these two property settings:

serverstate .persistchanges serverstate .load Server Restart Behavior
true true Corticon Server maintains ServerState.xml during operation, and automatically reads it upon restart to restore to the old state.
true false

Corticon Server maintains ServerState.xml during operation, but does NOT automatically read it upon restart. New Server state upon restart is unaffected by ServerState.xml.

This allows a system administrator to manually control state restoration from the ServerState.xml, if preferred.

false true Corticon Server attempts to read ServerState.xml upon restart, but finds nothing there. No old state restored.
false false no ServerState.xml document exists, and Corticon Server does not attempt to read it upon restart. No old state restored.