Skip to content

bpmn-server / Configuration

Class: Configuration#

Implements#

Table of contents#

Constructors#

Properties#

Methods#

Constructors#

constructor#

• new Configuration(«destructured»): Configuration

Each factory given replaces the default one; one left out keeps it.

Parameters#

Name Type
«destructured» any

Returns#

Configuration

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:79

Properties#

definitionsPath#

• Optional definitionsPath: string

Implementation of#

IConfiguration.definitionsPath

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:18


templatesPath#

• Optional templatesPath: string

Implementation of#

IConfiguration.templatesPath

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:19


timers#

• timers: Object

Type declaration#

Name Type
forceTimersDelay number
precision number

Implementation of#

IConfiguration.timers

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:20


database#

• database: Object

Type declaration#

Name Type
MongoDB { db_url: string ; db: string ; Locks_collection: "wf_locks" ; Instance_collection: "wf_instances" ; Archive_collection: "wf_archives" }
MongoDB.db_url string
MongoDB.db string
MongoDB.Locks_collection "wf_locks"
MongoDB.Instance_collection "wf_instances"
MongoDB.Archive_collection "wf_archives"
loopbackRepositories? any

Implementation of#

IConfiguration.database

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:21


logger#

• logger: ILogger

Implementation of#

IConfiguration.logger

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:31


apiKey#

• apiKey: string

Implementation of#

IConfiguration.apiKey

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:32


moddleOptions#

• Optional moddleOptions: any

Extensions to the BPMN model's types (bpmn-moddle's); reading a model needs them, in and out of the engine.

Implementation of#

IConfiguration.moddleOptions

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:33


servicesFile#

• Optional servicesFile: string

No longer read (before 3.7.2: a services.json the scan wrote); the names come from the delegate's source.

Implementation of#

IConfiguration.servicesFile

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:34


delegateFile#

• Optional delegateFile: string

Where the application's delegate's source is, read at start for its services' names (default delegates/appDelegate.ts).

Implementation of#

IConfiguration.delegateFile

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:35


serviceNames#

• Optional serviceNames: string[] | Promise\<string[]>

The names of the application's services, read from the delegate's source at start (bpmn-web: runtime/serviceNames.ts), for what checks models outside the engine; null when it could not be read (the engine is asked instead).

Implementation of#

IConfiguration.serviceNames

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:36


sendGridAPIKey#

• sendGridAPIKey: string

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:37


appConfig#

• Optional appConfig: string

Where the application's app-config.json is (which add-ons are on); the working folder's by default.

Implementation of#

IConfiguration.appConfig

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:54


serverId#

• Optional serverId: string

This process's identity as a lock owner (default SERVER_ID, else host, process id and a random suffix).

Implementation of#

IConfiguration.serverId

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:67


locks#

• Optional locks: Object

Type declaration#

Name Type
retryDelay? number
maxTries? number
staleAfter? number

Implementation of#

IConfiguration.locks

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:68


shutdownTimeout#

• Optional shutdownTimeout: number

How long shutdown() waits for running executions, in milliseconds (10000).

Implementation of#

IConfiguration.shutdownTimeout

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:69


demo#

• Optional demo: boolean

Deprecated

Both of the above false. Set them instead.

Implementation of#

IConfiguration.demo

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:70


runTimers#

• Optional runTimers: boolean

false: timers are never scheduled: a timer event waits until it is invoked, and no process starts on a timer. It says so in the run's decisions. Default true.

Implementation of#

IConfiguration.runTimers

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:71


runServiceTasks#

• Optional runServiceTasks: boolean

false: service tasks call nothing: they end with no output, and say so in the run's decisions. Default true.

Implementation of#

IConfiguration.runServiceTasks

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:72


connectors#

• Optional connectors: IConnectorsConfiguration

Connectors' calls (docs/docs/connectors.md): the defaults a connector's own timeout and retries override.

Implementation of#

IConfiguration.connectors

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:73


modelHistory#

• Optional modelHistory: boolean

Each save of a model keeps a version in .history/<name>/ beside it, for the editor's History tab (default true).

Implementation of#

IConfiguration.modelHistory

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:74


formRules#

• Optional formRules: boolean

false: a form's rules are not checked (elements/FormRules.ts). Default true.

Implementation of#

IConfiguration.formRules

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:76

Methods#

definitions#

▸ definitions(server): ModelsDatastore

Parameters#

Name Type
server any

Returns#

ModelsDatastore

Implementation of#

IConfiguration.definitions

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:38


appDelegate#

▸ appDelegate(server): IAppDelegate

Parameters#

Name Type
server any

Returns#

IAppDelegate

Implementation of#

IConfiguration.appDelegate

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:41


dataStore#

▸ dataStore(server): IDataStore

Parameters#

Name Type
server any

Returns#

IDataStore

Implementation of#

IConfiguration.dataStore

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:44


cacheManager#

▸ cacheManager(server): NoCacheManager

Parameters#

Name Type
server any

Returns#

NoCacheManager

Implementation of#

IConfiguration.cacheManager

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:47


scriptHandler#

▸ scriptHandler(server): ScriptHandler

Parameters#

Name Type
server any

Returns#

ScriptHandler

Implementation of#

IConfiguration.scriptHandler

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:50


addOns#

▸ addOns(server): IAddOn[]

The add-ons that are on (engine/AddOns.ts): those app-config.json names, every one without it; unless the configuration gives its own.

Parameters#

Name Type
server any

Returns#

IAddOn[]

Implementation of#

IConfiguration.addOns

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:56


addOnManifests#

▸ addOnManifests(): IAddOnManifest[]

Every add-on bpmn-server comes with, on or off: their manifests.

Returns#

IAddOnManifest[]

Implementation of#

IConfiguration.addOnManifests

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:60


documentStore#

▸ documentStore(server): IDocumentStore

The storage adapter both data stores use (MongoDB when absent): an in-memory store, an application's database.

Parameters#

Name Type
server any

Returns#

IDocumentStore

Implementation of#

IConfiguration.documentStore

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:65


locker#

▸ locker(server): ILockManager

The lock adapter (the data store's own when absent).

Parameters#

Name Type
server any

Returns#

ILockManager

Implementation of#

IConfiguration.locker

Defined in#

packages/bpmn-server/src/common/DefaultConfiguration.ts:66

Comments