Skip to content

@sourceloop/task-service / Exports / CamundaService

Class: CamundaService

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new CamundaService(http, config)

Parameters

Name Type
http HttpClientService
config IWorkflowServiceConfig

Defined in

services/task-service/src/services/camunda.service.ts:19

Properties

baseUrl

baseUrl: undefined | string = ''

Defined in

services/task-service/src/services/camunda.service.ts:18


config

Private Readonly config: IWorkflowServiceConfig

Defined in

services/task-service/src/services/camunda.service.ts:23


http

Private Readonly http: HttpClientService

Defined in

services/task-service/src/services/camunda.service.ts:21

Methods

completeUserTask

completeUserTask(id, variables?): Promise<void>

Parameters

Name Type
id string
variables? AnyObject

Returns

Promise<void>

Defined in

services/task-service/src/services/camunda.service.ts:28


create

create<T>(name, file): Promise<T>

Type parameters

Name
T

Parameters

Name Type
name string
file Buffer

Returns

Promise<T>

Defined in

services/task-service/src/services/camunda.service.ts:40


delete

delete(ids): Promise<unknown[]>

Parameters

Name Type
ids string[]

Returns

Promise<unknown[]>

Defined in

services/task-service/src/services/camunda.service.ts:50


deleteVersion

deleteVersion(id): Promise<unknown>

Parameters

Name Type
id string

Returns

Promise<unknown>

Defined in

services/task-service/src/services/camunda.service.ts:62


execute

execute<T>(id, input): Promise<T>

Type parameters

Name
T

Parameters

Name Type
id string
input AnyObject

Returns

Promise<T>

Defined in

services/task-service/src/services/camunda.service.ts:70


formatInput

Private formatInput(input): AnyObject

Parameters

Name Type
input AnyObject

Returns

AnyObject

Defined in

services/task-service/src/services/camunda.service.ts:76


get

get<T>(id): Promise<T>

Type parameters

Name
T

Parameters

Name Type
id string

Returns

Promise<T>

Defined in

services/task-service/src/services/camunda.service.ts:66


getPendingUserTasks

getPendingUserTasks(processDefinitionId): Promise<CamundaTask[]>

Parameters

Name Type
processDefinitionId string

Returns

Promise<CamundaTask[]>

Defined in

services/task-service/src/services/camunda.service.ts:34