Browse Source

Get Workflow Instance Add Node Field.

sdk-team 3 năm trước cách đây
mục cha
commit
1bf5fe98af

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1661
+1.36.1662

+ 1 - 0
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;

+ 2 - 0
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"];