From 1bf5fe98af094adb40f35a74293b3a5343f2c374 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 17 Jul 2023 08:49:00 +0000 Subject: [PATCH] Get Workflow Instance Add Node Field. --- VERSION | 2 +- .../alibabacloud/schedulerx2/model/GetWorkflowInstanceResult.h | 1 + schedulerx2/src/model/GetWorkflowInstanceResult.cc | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 32b0e7de1..6e3b248f7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1661 \ No newline at end of file +1.36.1662 \ No newline at end of file diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/GetWorkflowInstanceResult.h b/schedulerx2/include/alibabacloud/schedulerx2/model/GetWorkflowInstanceResult.h index c36f8b711..e76065a27 100644 --- a/schedulerx2/include/alibabacloud/schedulerx2/model/GetWorkflowInstanceResult.h +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/GetWorkflowInstanceResult.h @@ -53,6 +53,7 @@ namespace AlibabaCloud long jobInstanceId; std::string workAddr; std::string startTime; + std::string jobName; std::string dataTime; long jobId; std::string result; diff --git a/schedulerx2/src/model/GetWorkflowInstanceResult.cc b/schedulerx2/src/model/GetWorkflowInstanceResult.cc index 11e4d0871..307c3d3e9 100644 --- a/schedulerx2/src/model/GetWorkflowInstanceResult.cc +++ b/schedulerx2/src/model/GetWorkflowInstanceResult.cc @@ -76,6 +76,8 @@ void GetWorkflowInstanceResult::parse(const std::string &payload) nodeObject.attempt = std::stoi(wfInstanceDagNodeNodesNode["Attempt"].asString()); if(!wfInstanceDagNodeNodesNode["Status"].isNull()) nodeObject.status = std::stoi(wfInstanceDagNodeNodesNode["Status"].asString()); + if(!wfInstanceDagNodeNodesNode["JobName"].isNull()) + nodeObject.jobName = wfInstanceDagNodeNodesNode["JobName"].asString(); data_.wfInstanceDag.nodes.push_back(nodeObject); } auto allEdgesNode = wfInstanceDagNode["Edges"]["Edge"];