bpmn-server / APIModel
Class: APIModel#
Hierarchy#
APIComponent
↳ APIModel
Table of contents#
Constructors#
Properties#
Accessors#
Methods#
Constructors#
constructor#
• new APIModel(api
): APIModel
Parameters#
Name | Type |
---|---|
api |
any |
Returns#
Inherited from#
APIComponent.constructor
Defined in#
Properties#
api#
• api: BPMNAPI
Inherited from#
APIComponent.api
Defined in#
Accessors#
server#
• get
server(): IBPMNServer
Returns#
Inherited from#
APIComponent.server
Defined in#
Methods#
getUser#
▸ getUser(user
): any
Parameters#
Name | Type |
---|---|
user |
any |
Returns#
any
Inherited from#
APIComponent.getUser
Defined in#
get#
▸ get(query
, user
): Promise
\<object
[]>
Parameters#
Name | Type |
---|---|
query |
any |
user |
ISecureUser |
Returns#
Promise
\<object
[]>
Defined in#
save#
▸ save(name
, source
, svg
, user?
): Promise
\<boolean
>
Parameters#
Name | Type |
---|---|
name |
any |
source |
any |
svg |
any |
user? |
ISecureUser |
Returns#
Promise
\<boolean
>
Defined in#
list#
▸ list(query
, user?
): Promise
\<string
[]>
Parameters#
Name | Type |
---|---|
query |
any |
user? |
ISecureUser |
Returns#
Promise
\<string
[]>
Defined in#
findEvents#
▸ findEvents(query
, user?
): Promise
\<any
[]>
Parameters#
Name | Type |
---|---|
query |
any |
user? |
ISecureUser |
Returns#
Promise
\<any
[]>
Defined in#
findStartEvents#
▸ findStartEvents(query
, user?
): Promise
\<any
[]>
Parameters#
Name | Type |
---|---|
query |
any |
user? |
ISecureUser |
Returns#
Promise
\<any
[]>
Defined in#
delete#
▸ delete(name
, user?
): Promise
\<false
| void
>
Parameters#
Name | Type |
---|---|
name |
any |
user? |
ISecureUser |
Returns#
Promise
\<false
| void
>
Defined in#
rename#
▸ rename(name
, newName
, user?
): Promise
\<boolean
>
Parameters#
Name | Type |
---|---|
name |
any |
newName |
any |
user? |
ISecureUser |
Returns#
Promise
\<boolean
>
Defined in#
getSource#
▸ getSource(name
, user?
): Promise
\<string
>
Parameters#
Name | Type |
---|---|
name |
any |
user? |
ISecureUser |
Returns#
Promise
\<string
>
Defined in#
load#
▸ load(name
, user?
): Promise
\<IDefinition
>
Parameters#
Name | Type |
---|---|
name |
any |
user? |
ISecureUser |
Returns#
Promise
\<IDefinition
>
Defined in#
export#
▸ export(query
, folder
, user?
): Promise
\<void
>
Parameters#
Name | Type |
---|---|
query |
any |
folder |
any |
user? |
ISecureUser |
Returns#
Promise
\<void
>