功能介紹
以同步執(zhí)行方式啟動工作流(僅快速模式工作流支持),暫不支持國際站局點調(diào)用
調(diào)試
您可以在API Explorer中調(diào)試該接口,支持自動認(rèn)證鑒權(quán)。API Explorer可以自動生成SDK代碼示例,并提供SDK代碼示例調(diào)試功能。
URI
POST /v2/{project_id}/fgs/workflows/{workflow_id}/sync-executions
|
參數(shù) |
是否必選 |
參數(shù)類型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
項目ID,獲取方式請參見獲取項目ID。 最小長度:1 最大長度:64 |
|
workflow_id |
是 |
String |
工作流定義ID 最小長度:1 最大長度:512 |
請求參數(shù)
|
參數(shù) |
是否必選 |
參數(shù)類型 |
描述 |
|---|---|---|---|
|
headers |
否 |
Object |
執(zhí)行時需要的Header |
|
input |
是 |
Object |
定義執(zhí)行時的入?yún)?,支持使用JSONPATH進(jìn)行映射,以及指定默認(rèn)值 |
響應(yīng)參數(shù)
狀態(tài)碼: 200
|
參數(shù) |
參數(shù)類型 |
描述 |
|---|---|---|
|
execution_id |
String |
流程實例ID 最小長度:1 最大長度:64 |
|
status |
String |
流程執(zhí)行最終狀態(tài) 最小長度:1 最大長度:64 枚舉值:
|
|
output |
Object |
工作流的執(zhí)行結(jié)果,JSON格式,僅在status為success時有值 |
|
errors |
流程執(zhí)行錯誤信息,僅在status為fail時有值 |
|
|
begin_time |
String |
流程實例創(chuàng)建時間,格式:yyyy-MM-ddTHH:mm:ssZ,UTC時間 最小長度:0 最大長度:64 |
|
end_time |
String |
流程實例結(jié)束時間,格式:yyyy-MM-ddTHH:mm:ssZ,UTC時間 最小長度:0 最大長度:64 |
|
參數(shù) |
參數(shù)類型 |
描述 |
|---|---|---|
|
node_id |
String |
流程節(jié)點ID 最小長度:1 最大長度:64 |
|
error_message |
String |
錯誤詳細(xì)信息 最小長度:1 最大長度:2048 |
|
begin_time |
String |
流程實例創(chuàng)建時間,格式:yyyy-MM-ddTHH:mm:ssZ,UTC時間 最小長度:0 最大長度:64 |
|
end_time |
String |
流程實例結(jié)束時間,格式:yyyy-MM-ddTHH:mm:ssZ,UTC時間 最小長度:0 最大長度:64 |
狀態(tài)碼: 400
|
參數(shù) |
參數(shù)類型 |
描述 |
|---|---|---|
|
error_code |
String |
錯誤碼 最小長度:1 最大長度:36 |
|
error_msg |
String |
錯誤描述 最小長度:2 最大長度:512 |
狀態(tài)碼: 404
|
參數(shù) |
參數(shù)類型 |
描述 |
|---|---|---|
|
error_code |
String |
錯誤碼 最小長度:1 最大長度:36 |
|
error_msg |
String |
錯誤描述 最小長度:2 最大長度:512 |
狀態(tài)碼: 500
|
參數(shù) |
參數(shù)類型 |
描述 |
|---|---|---|
|
error_code |
String |
錯誤碼 最小長度:1 最大長度:36 |
|
error_msg |
String |
錯誤描述 最小長度:2 最大長度:512 |
請求示例
同步執(zhí)行工作流。
POST /{project_id}/fgs/workflows/{workflow_id}/sync-executions
{
"headers" : {
"tenantId" : "user1"
},
"input" : {
"arg1" : "argument_1",
"arg2" : "argument_2"
}
}
響應(yīng)示例
狀態(tài)碼: 200
Success
{
"execution_id" : "48aff955-ea10-4ffd-b426-190bc192dc14",
"status" : "success",
"output" : {
"result" : 200,
"message" : "success"
},
"errors" : [ {
"node_id" : "48aff955-ea10-4ffd-b426-190bc192dc14",
"error_message" : "Exception happened",
"begin_time" : "2021-01-01T00:00:00Z",
"end_time" : "2021-01-01T00:00:00Z"
} ],
"begin_time" : "2021-01-01T00:00:00Z",
"end_time" : "2021-01-01T00:00:00Z"
}
狀態(tài)碼
|
狀態(tài)碼 |
描述 |
|---|---|
|
200 |
Success |
|
400 |
Bad Request |
|
404 |
Bad Request |
|
500 |
Internal Server Error |
錯誤碼
請參見錯誤碼。
- 函數(shù)工作流FunctionGraph支持毫秒級響應(yīng)文件處理_函數(shù)工作流_華為云FunctionGraph-華為云
- 函數(shù)流管理_編排無服務(wù)器_函數(shù)工作流 FunctionGraph-華為云
- GaussDB函數(shù)_GaussDB數(shù)據(jù)庫函數(shù)_高斯數(shù)據(jù)庫函數(shù)_華為云
- GaussDB支持的函數(shù)_GaussDB函數(shù)類型解析_高斯數(shù)據(jù)庫支持的函數(shù)-華為云
- GaussDB數(shù)據(jù)庫函數(shù)_GaussDB函數(shù)和操作符_高斯數(shù)據(jù)庫函數(shù)-華為云
最新文章
- 什么是函數(shù)工作流_functiongraph是什么_函數(shù)工作流服務(wù)
- 什么是函數(shù)工作流_函數(shù)托管計算服務(wù)_函數(shù)工作流 FunctionGraph-華為云
- 函數(shù)工作流可以做什么_函數(shù)工作流有什么優(yōu)勢_函數(shù)工作流 FunctionGraph-華為云
- 調(diào)用函數(shù)_函數(shù)調(diào)用方式_函數(shù)工作流 FunctionGraph-華為云
- 使用函數(shù)工作流資源成本降低70%_函數(shù)能力_函數(shù)工作流 FunctionGraph-華為云
- 使用SpringBoot構(gòu)建HTTP函數(shù)_functiongraph_函數(shù)工作流
