Properties in Higson

Higson gives user a possibility to configure and overwrite internal application properties. They are stored in dedicated file, named application.yml . File should be placed in container or may be pass using environment properties

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  studio-api:
    image: decerto/higson:4.1.0
    container_name: higson-studio-api
    ports:
      - "48282:8282"
    volumes:
      - ./application.yml:/application.yml  # << here properties are passed from host in yaml file
    environment:
      - "HIGSON_DATABASE_URL=jdbc:postgresql..." # << this section let us define environment properties which has precedence over the yaml file.
      - "HIGSON_DATABASE_USERNAME=higson"
      - "HIGSON_DATABASE_PASSWORD=higson"
      - "HIGSON_DATABASE_DIALECT=postgresql" 

Configurable properties#

Property Description Default value
Database
higson.database.dialect Database dialect to use. Predefined dialects available in Higson: oracle,hsqldb, h2, mssql2012, postgresql, mysql oracle
higson.database.hbm2ddl-mode proxy for hibernate property hibernate.hbm2ddl.auto validate
higson.database.autoddl-action Action to be taken during Higson Studio startup with respect to database schema update:check - verify whether schema is correctupdate - chcek database schema and update, if neededskip - do nothing update
higson.database.url JDBC connection url THIS PROPERTY MUST BE SET AT SYSTEM START BY THE USER
higson.database.username Username that Higson will use to connect to database defined in mpp.database.url THIS PROPERTY MUST BE SET AT SYSTEM START BY THE USER
higson.database.password Password that Higson will use to connect to database defined in mpp.database.url THIS PROPERTY MUST BE SET AT SYSTEM START BY THE USER
higson.database.schema Database schema wherein Higson tables exist
Environment
higson.studio.instance-name Id identifying specific Higson Studio Instance. It is visible in Higson Studio below menu toolbar
higson.studio.url Higson Studio url used in few places, for example to create url for authentication token reset, CAS authentication etc. http://localhost:8080/higson/app
higson.studio.region.updater.task-cron CRON expression used to schedule job updating system region versions in Higson Studio 0 1 0 * * *
Security
higson.security.basic.password-encode Name of using password encoder bcrypt
higson.security.basic.bcrypt.complexity Password encoder complexity 5
higson.security.jwt.secret-key Secret to decode JWT token (up to 256-bytes chars). To communicate with Runtime Rest client.
higson.studio.security.token.verification.secret-key Secret to verify JWT token (up to 256-bytes chars). To communicate with UI. THIS PROPERTY MUST BE SET AT SYSTEM START BY THE USER
higson.studio.security.token.verification.algorithm Determines JWT token verification algorithm (only HMAC256 supported) HMAC256
higson.studio.security.token.generation.enabled Determines if studio server works as authentication provider true
higson.studio.security.token.generation.secret-key Secret to sign JWT token (up to 256-bytes chars). To communicate with UI. ${higson.studio.security.token.verification.secret-key}
higson.studio.security.token.generation.algorithm Determines JWT token sign algorithm (only HMAC256 supported) ${higson.studio.security.token.verification.algorithm}
higson.studio.security.token.generation.access-token-lifetime.value Access token lifetime value 5
higson.studio.security.token.generation.access-token-lifetime.unit Access token lifetime unit Minutes
higson.studio.security.token.generation.refresh-token-lifetime.value Refresh token lifetime value 7
higson.studio.security.token.generation.refresh-token-lifetime.unit Refresh token lifetime unit Days
higson.studio.security.token.generation.persist-refresh-token Should persist refresh token to database (session idempotent) true
higson.studio.security.login.attempts-limit Limit of failed login attempts 3
higson.studio.security.login.attempts-cooldown Time (in seconds) to freeze the ability to log in after reaching the limit of failed attempts 20
Features
higson.studio.mail.host Mailer server host. If host and port are not set - mailer is not loaded ""
higson.studio.mail.port Mailer server port. If host and port are not set - mailer is not loaded ""
higson.studio.mail.username Mailer server username ""
higson.studio.mail.password Mailer server username’s password ""
higson.studio.mail.from Mailer from metadata ""
higson.studio.snapshot.param.matrix.writer.order-by-all-level Should sort by all levels during export decision table to file. Available: true/false true
higson.studio.groovy.secured Groovy function verification. Available: true/false. If set to true it is not possible to use a class of type System or Exception. If set to false the function body is not validated and possible security problems will not be caught. true
higson.studio.function.validate-arguments Flag determining whether function arguments data types should be validated before test execution false
higson.studio.max-file-size Specifies the size of the snapshot that can be uploaded 100MB
higson.persistence.ui.enabled Enables GMO in Higson Studio UI false
higson.studio.global-search.matrix-scan.enabled Determines whether Global Search scans decision table matrices (cell values). When false, matrix cell values are not searched (decision table definitions, domain, functions, flows and context are still searched) and the Matrix option is removed from the Decision tables dropdown in Global Search on the Dashboard. The same applies to find-usages in AI features (chat / AI decision table): results from matrices are not returned. true

RUNTIME#

Available for Higson Runtime Spring Boot Starter or Higson Runtime REST apps

Property name Description Default Value
Database
higson.database.dialect Database dialect to use. Available values: oracle, hsqldb, h2, mssql2012, postgresql, mysql oracle
higson.database.url JDBC connection url THIS PROPERTY MUST BE SET AT SYSTEM START BY THE USER
higson.database.username Username that Higson will use to connect to database defined in mpp.database.url THIS PROPERTY MUST BE SET AT SYSTEM START BY THE USER
higson.database.password Password that Higson will use to connect to database defined in mpp.database.url THIS PROPERTY MUST BE SET AT SYSTEM START BY THE USER
higson.database.schema Database schema wherein Higson tables exist
Environement
higson.runtime-rest.url URL of Higson Runtime Rest
Authentication
higson.runtime-rest.security.type Defines security type for runtime rest. Possible values: jwt, active-directory. When not set basic authentication is enabled
higson.security.jwt.secret-key Secret key to decrypt runtime rest token THIS PROPERTY MUST BE SET AT SYSTEM START BY THE USER
higson.security.active-directory.domain Active Directory main root
higson.security.active-directory.url Active Directory server url
higson.security.active-directory.root-dn AD root domain
Other
higson.runtime.function.validate-arguments flag determining whether function arguments data types should be validated before execution false
higson.runtime.normalization.throw-on-exception flag determining whether an exception should be thrown when matrix value can’t be normalized false
higson.runtime.external-datasource.sql.names Names of data sources list.
higson.runtime.external-datasource.sql.%s.url Url to data source. %s is name of datasource from property above.
higson.runtime.external-datasource.sql.%s.username Username to data source. %s is name of datasource from property above.
higson.runtime.external-datasource.sql.%s.password Password to data source. %s is name of datasource from property above.
higson.runtime.external-datasource.sql.%s.min-pool-size Minimum size of connection thread pool. %s is name of datasource from property above. 1
higson.runtime.external-datasource.sql.%s.max-pool-size Maximum size of connection thread pool. %s is name of datasource from property above. 8
higson.runtime.parameter.value-never-null Flag responsible for managing global support of nullable decision table’s results in Higson Engine. If true, decision tables will return instance of pl.decerto.higson.runtime.core.EmptyParamValue when no match found. If set to false, decision tables return null. true
higson.runtime.watchers.enabled Flag determining whether runtime watchers should start automatically true
higson.runtime-rest.openapi.servers Comma separated list of servers URLs used in try it function in OpenAPI GUI. If not filled, URL will be generated automatically.
higson.runtime.groovy.secured Groovy function verification. Available: true/false. If set to true it is not possible to use a class of type System or Exception. If set to false the function body is not validated and possible security problems will not be caught. true
higson.runtime.dev-mode-enabled Enables developer mode. false
higson.runtime.username Username for developer mode.
higson.runtime.max-concurrent-loads Sets limited access to concurrent loads of decision tables. This helps to control usage of resources, since fetching decision tables might be very stressful for the application. 3
higson.runtime.watcher.pause-seconds Setup pause of watchers in seconds. (works for: param-watcher, function-watcher, domain-watcher, version-watcher, profile-runtime-watcher, userRegionVersion-runtime-watcher) 3
higson.runtime.watcher.force-sync-seconds Set the time after which the watcher will force a full cache synchronization. (works for: param-watcher) 60