Picking up Values from a Snapshot File

When you dynamically override app properties while a flow is being executed, you can configure Flogo Extension for Visual Studio Codeto pick up the values from a snapshot file.

To do this:

  1. Set the FLOGO_APP_PROP_SNAPSHOTS variable to true.
  2. Create a .json file (for example, snapshot_config.json) containing the parameter values in key/value pairs. Here is an example:

    {
    "FLOGO_APP_PROP_RECONFIGURE"="true",
    "FLOGO_HTTP_SERVICE_PORT"="7777",
    }

  3. Place the snapshots_config.json file in the same directory that contains your app binary.

  4. Run the following from the location where your app binary resides to set the FLOGO_APP_PROP_SNAPSHOTS environment variable. For example, to use the snapshots_config.json file from the example above, run
  5. FLOGO_APP_PROP_SNAPSHOTS=snapshots_config.json ./<app_binary_name>