get Get Workflow Templates By Doctype
/Output/GetWorkflowTemplatesByDoctype/[DocType]
Получение списка маршрутов по типу документа
Необходимо вместо [DocType] в конце адреса запроса указать идентификатор типа документа:
1–Поступление
2–Реализация
4-Договор
5-Счет-фактура исходящий
6-Счет исходящий
7-Банк
8-Авансовый отчет
9-Отчет
10-Акт сверки
11-Входящая корреспонденция
12-Исходящая корреспонденция
13-Прочее
14-Счет входящий
15-Счет-фактура входящий
16-Необработанные
19-Служебная записка
20-Складской документ
21-Кадровый документ
22-Технический документ
Responses
Response 200: ОК - Список маршрутов получен
[
{
"id": 88,
"clientId": 1,
"docTypeID": 14,
"title": "tret",
"canModify": true,
"wf": [
{
"stepNumber": 1,
"nextStepPositive": 2,
"nextStepNegative": -1,
"stepType": "Согласование",
"stepTitle": "Согласуйте документ1",
"param": "{"Users":"ivanov@domain.ru","TaskText":"Согласуйте документ","DeadLine":null,"DeadLineDays":null,"Initiator":null,"TaskID":null,"ApprovementType":"Последовательный","SubstituteFor":null,"TaskType":"Согласование"}",
"complitionParam": null,
"active": false,
"startDate": null,
"endDate": null,
"stepResult": null,
"stepTypeEnumerable": 0
},
{
"stepNumber": 2,
"nextStepPositive": 3,
"nextStepNegative": -1,
"stepType": "Согласование",
"stepTitle": "Согласуйте документ2",
"param": "{"Users":"ivanov@domain.ru","TaskText":"Согласуйте документ","DeadLine":null,"DeadLineDays":null,"Initiator":null,"TaskID":null,"ApprovementType":"Последовательный","SubstituteFor":null,"TaskType":"Согласование"}",
"complitionParam": null,
"active": false,
"startDate": null,
"endDate": null,
"stepResult": null,
"stepTypeEnumerable": 0
},
{
"stepNumber": 3,
"nextStepPositive": 4,
"nextStepNegative": -1,
"stepType": "Согласование",
"stepTitle": "Согласуйте документ3",
"param": "{"Users":"ivanov@domain.ru","TaskText":"Согласуйте документ","DeadLine":null,"DeadLineDays":null,"Initiator":null,"TaskID":null,"ApprovementType":"Последовательный","SubstituteFor":null,"TaskType":"Согласование"}",
"complitionParam": null,
"active": false,
"startDate": null,
"endDate": null,
"stepResult": null,
"stepTypeEnumerable": 0
},
{
"stepNumber": 4,
"nextStepPositive": 5,
"nextStepNegative": -1,
"stepType": "Согласование",
"stepTitle": "Согласуйте документ4",
"param": "{"Users":"ivanov@domain.ru","TaskText":"Согласуйте документ","DeadLine":null,"DeadLineDays":null,"Initiator":null,"TaskID":null,"ApprovementType":"Последовательный","SubstituteFor":null,"TaskType":"Согласование"}",
"complitionParam": null,
"active": false,
"startDate": null,
"endDate": null,
"stepResult": null,
"stepTypeEnumerable": 0
}
]
},
{
"id": 123,
"clientId": 1,
"docTypeID": 14,
"title": "equipment",
"canModify": false,
"wf": [
{
"stepNumber": 1,
"nextStepPositive": 2,
"nextStepNegative": 4,
"stepType": "Вычисление",
"stepTitle": "equipment",
"param": "{"Calculations":[{"FieldName":"projectId","ComparsionType":"Равно","FieldValue":31}]}",
"complitionParam": null,
"active": false,
"startDate": null,
"endDate": null,
"stepResult": null,
"stepTypeEnumerable": 1
},
{
"stepNumber": 2,
"nextStepPositive": 3,
"nextStepNegative": -1,
"stepType": "Согласование",
"stepTitle": "согласование",
"param": "{"Users":"ivanov@domain.ru,noname@domain.ru","TaskText":"Согласуйте документ","DeadLine":"2023-11-03T12:37:04.1649038+00:00","DeadLineDays":1,"Initiator":null,"TaskID":null,"ApprovementType":"Последовательный","SubstituteFor":null,"TaskType":"Согласование"}",
"complitionParam": null,
"active": false,
"startDate": null,
"endDate": null,
"stepResult": null,
"stepTypeEnumerable": 0
},
{
"stepNumber": 3,
"nextStepPositive": 4,
"nextStepNegative": -1,
"stepType": "Согласование",
"stepTitle": "подписание",
"param": "{"Users":"ivanov@domain.ru","TaskText":"Подпишите документ","DeadLine":"2023-11-03T12:37:04.2471368+00:00","DeadLineDays":1,"Initiator":null,"TaskID":null,"ApprovementType":"Последовательный","SubstituteFor":null,"TaskType":"Подписание"}",
"complitionParam": null,
"active": false,
"startDate": null,
"endDate": null,
"stepResult": null,
"stepTypeEnumerable": 0
},
{
"stepNumber": 4,
"nextStepPositive": 5,
"nextStepNegative": -1,
"stepType": "Событие",
"stepTitle": null,
"param": "{"event":"Оповещение пользователей","MessageRecipient":"ivanov@domain.ru,noname@domain.ru","Value":"подписано"}",
"complitionParam": null,
"active": false,
"startDate": null,
"endDate": null,
"stepResult": null,
"stepTypeEnumerable": 2
},
{
"stepNumber": 5,
"nextStepPositive": 6,
"nextStepNegative": -1,
"stepType": "Событие",
"stepTitle": null,
"param": "{"event":"Завершение процесса"}",
"complitionParam": null,
"active": false,
"startDate": null,
"endDate": null,
"stepResult": null,
"stepTypeEnumerable": 2
}
]
}
]
Response 401
Could not find any client for this token ( #err-40) - Не найден клиент с данным токеном
Response 500
Internal Server Error - Database Failure - Внутренняя ошибка сервера