diff --git a/services/bpmn-service/src/__tests__/const.ts b/services/bpmn-service/src/__tests__/const.ts index c2534d0015..2baf6a155b 100644 --- a/services/bpmn-service/src/__tests__/const.ts +++ b/services/bpmn-service/src/__tests__/const.ts @@ -5,6 +5,7 @@ export const MOCK_CAMUNDA = 'https://mock-camunda.api/engine-rest'; export const firstTestBpmn: WorkflowDto = new WorkflowDto({ name: 'first-bpmn', bpmnFile: JSON.stringify(['topic1', 'topic2']), + description: 'test description', inputSchema: { type: 'object', properties: {valueA: {type: 'string'}, valueB: {type: 'string'}}, diff --git a/services/bpmn-service/src/controllers/workflow.controller.ts b/services/bpmn-service/src/controllers/workflow.controller.ts index adca3a8c22..2feba6666f 100644 --- a/services/bpmn-service/src/controllers/workflow.controller.ts +++ b/services/bpmn-service/src/controllers/workflow.controller.ts @@ -86,6 +86,7 @@ export class WorkflowController { name: workflowDto.name, provider: workflowResponse.provider, inputSchema: workflowDto.inputSchema, + description: workflowDto.description, }); const newWorkflow = await this.workflowRepository.create(entity); @@ -136,6 +137,7 @@ export class WorkflowController { name: workflowDto.name, provider: workflowResponse.provider, inputSchema: workflowDto.inputSchema, + description: workflowDto.description, }); await this.workflowRepository.updateById(id, entity); diff --git a/services/bpmn-service/src/models/workflow-dto.model.ts b/services/bpmn-service/src/models/workflow-dto.model.ts index 6edf575511..d2b824a205 100644 --- a/services/bpmn-service/src/models/workflow-dto.model.ts +++ b/services/bpmn-service/src/models/workflow-dto.model.ts @@ -24,6 +24,11 @@ export class WorkflowDto extends Model { }) inputSchema: AnyObject; + @property({ + type: 'string', + }) + description: string; + constructor(data?: Partial) { super(data); }