Persistence

Description

Sample shows how to manage state machine configs. Sample uses file as state machine config storage.

Run sample from Eclipse

To run sample from within Eclipse:

  1. Import “com.evelopers.unimod.sample.persistence” sample into the Eclipse workspace (see Samples Usage Guidelines).
  2. Open “resources/diagrams/persistance.unimod”.
  3. Select state machine A1 on the Connectivity Diagram.
  4. Open context menu and select “Launch A1!”.
  5. Now, if you kill process during execution and then restart it, engine will recover last saved state from the file.
Note
You are free to manage state machine Config as you want. For application with database background, you may implement business logic for some entity using UniMod and develop ConfigStore that will store active State of the entity in database.