Skip to content

@sourceloop/task-service / Exports / CreateTaskCommand

Class: CreateTaskCommand

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new CreateTaskCommand(context)

Parameters

Name Type
context Context

Defined in

services/task-service/src/commands/create-task.ts:24

Properties

context

Private context: Context

Defined in

services/task-service/src/commands/create-task.ts:24


logger

logger: ILogger

Defined in

services/task-service/src/commands/create-task.ts:23


parameters

parameters: CamundaTaskParameters

Implementation of

ICommand.parameters

Defined in

services/task-service/src/commands/create-task.ts:22


topic

topic: string = 'create-tasks'

Defined in

services/task-service/src/commands/create-task.ts:21

Methods

_createTasks

Private _createTasks(tasks, context): Promise<Task<TaskStatus>[]>

Parameters

Name Type
tasks Task<TaskStatus>[]
context Context

Returns

Promise<Task<TaskStatus>[]>

Defined in

services/task-service/src/commands/create-task.ts:62


_startWorkflowsForTasks

Private _startWorkflowsForTasks(workflowKey, tasks, context): Promise<void>

Parameters

Name Type
workflowKey string
tasks Task<TaskStatus>[]
context Context

Returns

Promise<void>

Defined in

services/task-service/src/commands/create-task.ts:102


execute

execute(): Promise<void>

Returns

Promise<void>

Implementation of

ICommand.execute

Defined in

services/task-service/src/commands/create-task.ts:27