Get Workflow Instance Add Node Field.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user