bpmn-server / ModelsDatastoreDB
Class: ModelsDatastoreDB#
super class for various objects that are part of the server
Hierarchy#
↳ ModelsDatastoreDB
Implements#
Table of contents#
Constructors#
Properties#
Accessors#
Methods#
- get
- getList
- load
- getSource
- getSVG
- loadModel
- save
- findEvents
- getProjection
- install
- import
- updateTimer
- saveModel
- deleteModel
- renameModel
- export
- rebuild
Constructors#
constructor#
• new ModelsDatastoreDB(server
): ModelsDatastoreDB
Parameters#
Name | Type |
---|---|
server |
BPMNServer |
Returns#
Overrides#
Defined in#
datastore/ModelsDatastoreDB.ts:27
Properties#
dbConfiguration#
• dbConfiguration: any
Defined in#
datastore/ModelsDatastoreDB.ts:24
db#
• db: any
Defined in#
datastore/ModelsDatastoreDB.ts:25
server#
• server: any
Inherited from#
Defined in#
Accessors#
configuration#
• get
configuration(): any
Returns#
any
Inherited from#
ServerComponent.configuration
Defined in#
logger#
• get
logger(): any
Returns#
any
Inherited from#
ServerComponent.logger
Defined in#
cron#
• get
cron(): Cron
Returns#
Inherited from#
ServerComponent.cron
Defined in#
cache#
• get
cache(): CacheManager
Returns#
Inherited from#
ServerComponent.cache
Defined in#
appDelegate#
• get
appDelegate(): any
Returns#
any
Inherited from#
ServerComponent.appDelegate
Defined in#
engine#
• get
engine(): IEngine
Returns#
Inherited from#
ServerComponent.engine
Defined in#
dataStore#
• get
dataStore(): any
Returns#
any
Inherited from#
ServerComponent.dataStore
Defined in#
definitions#
• get
definitions(): any
Returns#
any
Inherited from#
ServerComponent.definitions
Defined in#
listener#
• get
listener(): any
Returns#
any
Inherited from#
ServerComponent.listener
Defined in#
Methods#
get#
▸ get(query?
): Promise
\<object
[]>
Parameters#
Name | Type |
---|---|
query |
Object |
Returns#
Promise
\<object
[]>
Implementation of#
Defined in#
datastore/ModelsDatastoreDB.ts:34
getList#
▸ getList(query?
): Promise
\<string
[]>
Parameters#
Name | Type |
---|---|
query |
Object |
Returns#
Promise
\<string
[]>
Implementation of#
Defined in#
datastore/ModelsDatastoreDB.ts:40
load#
▸ load(name
, owner?
): Promise
\<Definition
>
Parameters#
Name | Type | Default value |
---|---|---|
name |
any |
undefined |
owner |
any |
null |
Returns#
Promise
\<Definition
>
Implementation of#
Defined in#
datastore/ModelsDatastoreDB.ts:54
getSource#
▸ getSource(name
, owner?
): Promise
\<any
>
Parameters#
Name | Type | Default value |
---|---|---|
name |
any |
undefined |
owner |
any |
null |
Returns#
Promise
\<any
>
Implementation of#
Defined in#
datastore/ModelsDatastoreDB.ts:61
getSVG#
▸ getSVG(name
, owner?
): Promise
\<any
>
Parameters#
Name | Type | Default value |
---|---|---|
name |
any |
undefined |
owner |
any |
null |
Returns#
Promise
\<any
>
Implementation of#
Defined in#
datastore/ModelsDatastoreDB.ts:66
loadModel#
▸ loadModel(name
, owner?
): Promise
\<BpmnModelData
>
Parameters#
Name | Type | Default value |
---|---|---|
name |
any |
undefined |
owner |
any |
null |
Returns#
Promise
\<BpmnModelData
>
Implementation of#
Defined in#
datastore/ModelsDatastoreDB.ts:75
save#
▸ save(name
, source
, svg
, owner?
): Promise
\<any
>
Parameters#
Name | Type | Default value |
---|---|---|
name |
any |
undefined |
source |
any |
undefined |
svg |
any |
undefined |
owner |
any |
null |
Returns#
Promise
\<any
>
Implementation of#
Defined in#
datastore/ModelsDatastoreDB.ts:85
findEvents#
▸ findEvents(query
, owner?
): Promise
\<IEventData
[]>
Parameters#
Name | Type | Default value |
---|---|---|
query |
any |
undefined |
owner |
any |
null |
Returns#
Promise
\<IEventData
[]>
Implementation of#
Defined in#
datastore/ModelsDatastoreDB.ts:104
getProjection#
▸ getProjection(query
): Object
Parameters#
Name | Type |
---|---|
query |
any |
Returns#
Object
Defined in#
datastore/ModelsDatastoreDB.ts:138
install#
▸ install(): Promise
\<any
>
first time installation of DB
creates a new collection and add an index
Returns#
Promise
\<any
>
Implementation of#
Defined in#
datastore/ModelsDatastoreDB.ts:164
import#
▸ import(data
, owner?
): Promise
\<any
>
Parameters#
Name | Type | Default value |
---|---|---|
data |
any |
undefined |
owner |
any |
null |
Returns#
Promise
\<any
>
Implementation of#
Defined in#
datastore/ModelsDatastoreDB.ts:167
updateTimer#
▸ updateTimer(name
, owner?
): Promise
\<boolean
>
Parameters#
Name | Type | Default value |
---|---|---|
name |
any |
undefined |
owner |
any |
null |
Returns#
Promise
\<boolean
>
Defined in#
datastore/ModelsDatastoreDB.ts:171
saveModel#
▸ saveModel(model
, owner?
): Promise
\<boolean
>
Parameters#
Name | Type | Default value |
---|---|---|
model |
IBpmnModelData |
undefined |
owner |
any |
null |
Returns#
Promise
\<boolean
>
Implementation of#
Defined in#
datastore/ModelsDatastoreDB.ts:197
deleteModel#
▸ deleteModel(name
, owner?
): Promise
\<void
>
Parameters#
Name | Type | Default value |
---|---|---|
name |
any |
undefined |
owner |
any |
null |
Returns#
Promise
\<void
>
Implementation of#
Defined in#
datastore/ModelsDatastoreDB.ts:217
renameModel#
▸ renameModel(name
, newName
, owner?
): Promise
\<boolean
>
Parameters#
Name | Type | Default value |
---|---|---|
name |
any |
undefined |
newName |
any |
undefined |
owner |
any |
null |
Returns#
Promise
\<boolean
>
Implementation of#
Defined in#
datastore/ModelsDatastoreDB.ts:222
export#
▸ export(name
, folderPath
, owner?
): Promise
\<void
>
Parameters#
Name | Type | Default value |
---|---|---|
name |
any |
undefined |
folderPath |
any |
undefined |
owner |
any |
null |
Returns#
Promise
\<void
>
Defined in#
datastore/ModelsDatastoreDB.ts:240
rebuild#
▸ rebuild(model?
): Promise
\<void
>
Parameters#
Name | Type | Default value |
---|---|---|
model |
any |
null |
Returns#
Promise
\<void
>