qbpmdesigner
Version: 1.01.01-SNAPSHOT
/v1/diagram-templates
GET
Summary
Получение списка шаблонов диаграмм по параметрам
Description
Получение списка шаблонов диаграмм по параметрам
Responses
| Code | Description | Schema |
|---|---|---|
| 200 | OK | [ TDiagramTemplate ] |
/v1/diagram-template
POST
Summary
Создание нового шаблона диаграммы
Parameters
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| diagram | body | TDiagramTemplateForPost | Yes | TDiagramTemplateForPost |
Responses
| Code | Description | Schema |
|---|---|---|
| 200 | OK | TDiagramTemplate |
/v1/diagram-template/{id}/instantiate
POST
Summary
Создание нового шаблона диаграммы
Parameters
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| id | path | ID шаблона диаграммы | Yes | long |
| data | body | TDiagramTemplateInstantiate | Yes | TDiagramTemplateInstantiate |
Responses
| Code | Description | Schema |
|---|---|---|
| 200 | OK | TDiagramTemplateInstantiateResp |
/v1/diagram-template/{diagramVersionId}
POST
Summary
Создание нового шаблона диаграммы из диаграммы процесса
Parameters
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| diagramVersionId | path | ID шаблона диаграммы | Yes | long |
| diagram | body | TDiagramTemplateForPostFromDiagramVersion | Yes | TDiagramTemplateForPostFromDiagramVersion |
Responses
| Code | Description | Schema |
|---|---|---|
| 200 | OK | TDiagramTemplate |
/v1/diagram-template/{id}
GET
Summary
Получение параметров шаблона по ИД
Parameters
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| id | path | ID шаблона диаграммы | Yes | long |
Responses
| Code | Description | Schema |
|---|---|---|
| 200 | OK | TDiagramTemplate |
PUT
Summary
Изменение шаблона
Parameters
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| id | path | ID шаблона диаграммы | Yes | long |
| template | body | Параметры изменения шаблона | Yes | TDiagramTemplateForPut |
Responses
| Code | Description | Schema |
|---|---|---|
| 200 | OK | TDiagramTemplate |
Models
TDiagramTemplateForPost
Входящие параметры для создания шаблона диаграммы из диаграммы процесса
| Name | Type | Description | Required |
|---|---|---|---|
| description | string | Описание | Yes |
| state | integer | ID состояния | No |
| content | string | Содержимое шаблона | Yes |
| productId | long | ID продукта | Yes |
| type | integer | Тип диаграммы шаблона | Yes |
| name | string | Наименование шаблона | Yes |
| systemName | string | Системное наименование шаблона | Yes |
| svg | string | Картинка диаграммы | Yes |
| applyParticipants | boolean | Применить права участника | No |
TDiagramTemplateInstantiate
| Name | Type | Description | Required |
|---|---|---|---|
| service | string | Наименование сервиса | No |
| name | string | Наименование диаграммы | Yes |
| sysName | string | Системное наименование диаграммы | Yes |
| productId | long | ID продукта | Yes |
| keys | [ TDiagramTemplateInstantiateKey ] | No |
TDiagramTemplateInstantiateKey
| Name | Type | Description | Required |
|---|---|---|---|
| key | string | ID процесса | No |
| newKey | string | Новый ID процесса | No |
TDiagramTemplateInstantiateResp
| Name | Type | Description | Required |
|---|---|---|---|
| diagramVersionId | long | ID созданной версии | No |
TDiagramTemplateForPostFromDiagramVersion
Входящие параметры для создания шаблона диаграммы из диаграммы процесса
| Name | Type | Description | Required |
|---|---|---|---|
| description | string | Описание | Yes |
| productId | long | ID продукта | No |
| name | string | Наименование шаблона | No |
TDiagramTemplate
Шаблон диаграммы
| Name | Type | Description | Required |
|---|---|---|---|
| id | long | ID записи | No |
| createdDate | dateTime | Дата создания | No |
| createdBy | string | Кем создано | No |
| lastModifiedDate | dateTime | Дата изменения | No |
| lastModifiedBy | string | Кем изменено | No |
| description | string | Описание | No |
| stateId | integer | ID состояния | No |
| content | string | Содержимое шаблона | No |
| productId | long | ID продукта | No |
| productSysName | string | Системное наименование продукта | No |
| productName | string | Наименование продукта | No |
| type | integer | Тип диаграммы шаблона | No |
| name | string | Наименование шаблона | No |
| systemName | string | Системное наименование шаблона | No |
| svg | string | Картинка диаграммы | No |
| applyParticipants | boolean | Применить права участника | No |
| participantAccesses | [ string ] | No |
TDiagramTemplateForPut
Шаблон диаграммы
| Name | Type | Description | Required |
|---|---|---|---|
| description | string | Описание | No |
| stateId | integer | ID состояния | No |
| content | string | Содержимое шаблона | No |
| name | string | Наименование шаблона | No |
| applyParticipants | boolean | Применить права участника | No |
| svg | string | Картинка диаграммы | No |
DiagramTemplate
| Name | Type | Description | Required |
|---|---|---|---|
| DiagramTemplate | object |