/api/v2/bpm/actionsProcesses
Метод настраивает действие ВНУТРИ процесса (на процессе)
- application/json
Request Body
- processId int64 required
ID процесса (ноды типа 'процесс'), к которому привязывается определенное действие
- eventId int64
ID события, которое является триггером для выполнения действия
- actionId int64 required
ID действия, которое привязывается к процессу
- nodeFromId int64 required
ID ноды (ноды типа 'нода'), с которой может быть осуществлен переход
- nodeToId int64 required
ID ноды (ноды типа 'нода'), на которую может быть осуществлен переход
- elementId int64
ID ноды (ноды типа 'поле'), элемент с которому привязывается событие
- order int64
Порядковый номер действия привязанного к процессу
- logId int64
ID из универсального справочника для отправки лога (события)
condition object required
Объект содержащий условие выполнения действия на процессе
expression stringPossible values:
non-empty
and<= 255 characters
Строка - выражение содержащее несколько шаблонов ID правил конкатенированных с помощью операторов 'or' или 'and'
- 201
- 400
- 401
Created
- application/json
- Schema
- Example (from schema)
- example-0
- example-1
- example-2
- example-3
Schema
- object
{}
201
{
"status": 1,
"message": "",
"response": {
"id": 3204251,
"processId": 1280053,
"eventId": 3,
"actionId": 3,
"nodeFromId": 1280054,
"nodeToId": 1280227,
"elementId": null,
"order": 0,
"logId": null,
"condition": {
"expression": "rule.12 & rule.13",
"rules": [
{
"id": 12,
"ruleName": "change application for a status VKYCCheck",
"methodId": 123,
"resultApiField": "body.status",
"fieldName": null,
"operator": "=",
"answerId": null,
"answer": "1",
"isRequired": true
},
{
"id": 13,
"ruleName": "change application for a status EmailVerification",
"methodId": 124,
"resultApiField": "body.status",
"fieldName": null,
"operator": "=",
"answerId": null,
"answer": "1",
"isRequired": true
}
]
}
},
"preparingsTime": 0.103
}
201_2
{
"status": 1,
"message": "",
"response": {
"id": 3204252,
"processId": 1280053,
"eventId": 4,
"actionId": 4,
"nodeFromId": 1280227,
"nodeToId": 1280558,
"elementId": 1280197,
"order": 0,
"logId": null,
"condition": {
"expression": "rule.12 & rule.13",
"rules": [
{
"id": 12,
"ruleName": "change application for a status VKYCCheck",
"methodId": 123,
"resultApiField": "body.status",
"fieldName": null,
"operator": "=",
"answerId": null,
"answer": "1",
"isRequired": true
},
{
"id": 13,
"ruleName": "change application for a status EmailVerification",
"methodId": 124,
"resultApiField": "body.status",
"fieldName": null,
"operator": "=",
"answerId": null,
"answer": "1",
"isRequired": true
}
]
}
},
"preparingsTime": 0.089
}
201_dev
{
"status": 1,
"message": "",
"response": {
"id": 3228897,
"processId": 1155267,
"eventId": 3,
"actionId": 3,
"nodeFromId": 1155268,
"nodeToId": 1155441,
"elementId": 1155319,
"order": 0,
"logId": 4,
"condition": {
"expression": "rule.12 & rule.13",
"rules": [
{
"id": 12,
"ruleName": "change application for a status VKYCCheck",
"methodId": 123,
"resultApiField": "body.status",
"fieldName": null,
"operator": "=",
"answerId": null,
"answer": "1",
"isRequired": true
},
{
"id": 13,
"ruleName": "change application for a status EmailVerification",
"methodId": 124,
"resultApiField": "body.status",
"fieldName": null,
"operator": "=",
"answerId": null,
"answer": "1",
"isRequired": true
}
]
}
},
"preparingsTime": 0.813
}
201_dev_2
{
"status": 1,
"message": "",
"response": {
"id": 3228898,
"processId": 1155267,
"eventId": 4,
"actionId": 10,
"nodeFromId": 1155441,
"nodeToId": 1155772,
"elementId": 1155612,
"order": 1,
"logId": 6,
"condition": {
"expression": "rule.28",
"rules": [
{
"id": 28,
"ruleName": "status scoring: new",
"methodId": null,
"resultApiField": null,
"fieldName": "{{field.243}}",
"operator": "=",
"answerId": null,
"answer": "new",
"isRequired": true
}
]
}
},
"preparingsTime": 0.506
}
Bad Request
- application/json
- Schema
- Example (from schema)
- example-0
- example-1
Schema
- object
{}
400_dev
{
"status": 0,
"message": "This field is required.",
"response": {
"processId": [
"This field is required."
],
"actionId": [
"This field is required."
],
"nodeFromId": [
"This field is required."
],
"nodeToId": [
"This field is required."
],
"condition": [
"This field is required."
]
},
"preparingsTime": 0.195
}
400_2_dev
{
"status": 0,
"message": "This field may not be null.",
"response": {
"processId": [
"This field may not be null."
],
"eventId": [
"This field may not be null."
],
"actionId": [
"This field may not be null."
],
"nodeFromId": [
"This field may not be null."
],
"nodeToId": [
"This field may not be null."
],
"elementId": [
"This field may not be null."
],
"order": [
"This field may not be null."
],
"logId": [
"This field may not be null."
],
"condition": [
"This field may not be null."
]
},
"preparingsTime": 0.151
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status": 0,
"message": "Authentication credentials were not provided.",
"response": {
"detail": "Authentication credentials were not provided."
},
"preparingsTime": 0.004
}