Skip to content

@sourceloop/bpmn-service / Exports / WorkflowRepository

Class: WorkflowRepository

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new WorkflowRepository(dataSource, workflowVersionRepositoryGetter, getCurrentUser)

Parameters

Name Type
dataSource DataSource
workflowVersionRepositoryGetter Getter<WorkflowVersionRepository>
getCurrentUser Getter<undefined | IAuthUserWithPermissions<string, string, string>>

Overrides

DefaultUserModifyCrudRepository< Workflow, typeof Workflow.prototype.id, WorkflowRelations \>.constructor

Defined in

services/bpmn-service/src/repositories/workflow.repository.ts:30

Properties

getCurrentUser

Protected Readonly getCurrentUser: Getter<undefined | IAuthUserWithPermissions<string, string, string>>

Inherited from

DefaultUserModifyCrudRepository.getCurrentUser

Defined in

services/bpmn-service/src/repositories/workflow.repository.ts:36


workflowVersionRepositoryGetter

Protected workflowVersionRepositoryGetter: Getter<WorkflowVersionRepository>

Defined in

services/bpmn-service/src/repositories/workflow.repository.ts:34


workflowVersions

Readonly workflowVersions: HasManyRepositoryFactory<WorkflowVersion, undefined | string>

Defined in

services/bpmn-service/src/repositories/workflow.repository.ts:25

Methods

create

create(entity, options?): Promise<Workflow>

Parameters

Name Type
entity DataObject<Workflow>
options? Options

Returns

Promise<Workflow>

Inherited from

DefaultUserModifyCrudRepository.create

Defined in

packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:11


createAll

createAll(entities, options?): Promise<Workflow[]>

Parameters

Name Type
entities DataObject<Workflow>[]
options? Options

Returns

Promise<Workflow[]>

Inherited from

DefaultUserModifyCrudRepository.createAll

Defined in

packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:12


replaceById

replaceById(id, data, options?): Promise<void>

Parameters

Name Type
id undefined | string
data DataObject<Workflow>
options? Options

Returns

Promise<void>

Inherited from

DefaultUserModifyCrudRepository.replaceById

Defined in

packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:17


save

save(entity, options?): Promise<Workflow>

Parameters

Name Type
entity Workflow
options? Options

Returns

Promise<Workflow>

Inherited from

DefaultUserModifyCrudRepository.save

Defined in

packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:13


update

update(entity, options?): Promise<void>

Parameters

Name Type
entity Workflow
options? Options

Returns

Promise<void>

Inherited from

DefaultUserModifyCrudRepository.update

Defined in

packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:14


updateAll

updateAll(data, where?, options?): Promise<Count>

Parameters

Name Type
data DataObject<Workflow>
where? Where<Workflow>
options? Options

Returns

Promise<Count>

Inherited from

DefaultUserModifyCrudRepository.updateAll

Defined in

packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:15


updateById

updateById(id, data, options?): Promise<void>

Parameters

Name Type
id undefined | string
data DataObject<Workflow>
options? Options

Returns

Promise<void>

Inherited from

DefaultUserModifyCrudRepository.updateById

Defined in

packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:16