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:
- Set the
FLOGO_APP_PROP_SNAPSHOTSvariable totrue. -
Create a
.jsonfile (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",
} -
Place the
snapshots_config.jsonfile in the same directory that contains your app binary. - Run the following from the location where your app binary resides to set the
FLOGO_APP_PROP_SNAPSHOTSenvironment variable. For example, to use thesnapshots_config.jsonfile from the example above, run
FLOGO_APP_PROP_SNAPSHOTS=snapshots_config.json ./<app_binary_name>