Running Flogo Flow State Manager as a Standalone App

    Procedure
  1. Start Flogo Flow State Manager by executing the binary for your operating system: 
    • flowstatemanager-windows_amd64 (Windows executable)
    • flowstatemanager-linux_amd64 (Linux executable)
    • flowstatemanager-darwin_amd64 (Mac executable)
  2. Copy the <flogo_flow_state_manager.tar>\config\postgres\config.json into the bin directory. If the config.json file exists in any other directory, you can also set the FLOW_STATE_CONFIG environment variable to point to the location as follows: 
    FLOW_STATE_CONFIG=<file path>
  3. Update the values in config.json as follows:

    {

    "exposeRecorder": true,

    "port": "<The port on which you want to start the flow state manager binary>",

    "persistence": {

    "type":"postgres",

    "name": "pg-server-1",

    "description": "",

    "host": "<The IP address where Postgres is running>",

    "port": "<port on which the Postgres database server is running>",

    "databaseName": "postgres",

    "user": "<user value configured while starting PostgreSQL server)>",

    "password": "<password value configured while starting PostgreSQL server>",

    "Maintenance database": <same as <user>, if not specifically mentioned while starting postgreSQL>

    "maxopenconnection": "0",

    "maxidleconnection": "2",

    "connmaxlifetime": "0",

    "maxconnectattempts": "3",

    "connectionretrydelay": "5",

    "tlsparam": "VerifyCA",

    "cacert": "",

    "clientcert": "",

    "clientkey": ""

    }

    }