Compare commits

..

6 Commits

Author SHA1 Message Date
sdk-team
678893901f Add TimeOut. 2023-07-17 15:06:01 +00:00
sdk-team
1bf5fe98af Get Workflow Instance Add Node Field. 2023-07-17 08:49:00 +00:00
sdk-team
2173eb9110 Get Job Instance API add Field. 2023-07-17 06:06:10 +00:00
sdk-team
045dcc9fa9 Generated 2020-05-18 for dataworks-public. 2023-07-17 04:14:08 +00:00
sdk-team
2fa7d5dc9f Add error code. 2023-07-16 15:05:44 +00:00
sdk-team
0a04d9d475 Add error code. 2023-07-15 15:05:08 +00:00
20 changed files with 451 additions and 1 deletions

View File

@@ -1 +1 @@
1.36.1657
1.36.1663

View File

@@ -89,6 +89,8 @@ set(dataworks-public_public_header_model
include/alibabacloud/dataworks-public/model/CreateQualityRuleResult.h
include/alibabacloud/dataworks-public/model/CreateRemindRequest.h
include/alibabacloud/dataworks-public/model/CreateRemindResult.h
include/alibabacloud/dataworks-public/model/CreateResourceFileRequest.h
include/alibabacloud/dataworks-public/model/CreateResourceFileResult.h
include/alibabacloud/dataworks-public/model/CreateTableRequest.h
include/alibabacloud/dataworks-public/model/CreateTableResult.h
include/alibabacloud/dataworks-public/model/CreateTableLevelRequest.h
@@ -604,6 +606,8 @@ set(dataworks-public_src
src/model/CreateQualityRuleResult.cc
src/model/CreateRemindRequest.cc
src/model/CreateRemindResult.cc
src/model/CreateResourceFileRequest.cc
src/model/CreateResourceFileResult.cc
src/model/CreateTableRequest.cc
src/model/CreateTableResult.cc
src/model/CreateTableLevelRequest.cc

View File

@@ -90,6 +90,8 @@
#include "model/CreateQualityRuleResult.h"
#include "model/CreateRemindRequest.h"
#include "model/CreateRemindResult.h"
#include "model/CreateResourceFileRequest.h"
#include "model/CreateResourceFileResult.h"
#include "model/CreateTableRequest.h"
#include "model/CreateTableResult.h"
#include "model/CreateTableLevelRequest.h"
@@ -645,6 +647,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateRemindResult> CreateRemindOutcome;
typedef std::future<CreateRemindOutcome> CreateRemindOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateRemindRequest&, const CreateRemindOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRemindAsyncHandler;
typedef Outcome<Error, Model::CreateResourceFileResult> CreateResourceFileOutcome;
typedef std::future<CreateResourceFileOutcome> CreateResourceFileOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateResourceFileRequest&, const CreateResourceFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateResourceFileAsyncHandler;
typedef Outcome<Error, Model::CreateTableResult> CreateTableOutcome;
typedef std::future<CreateTableOutcome> CreateTableOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateTableRequest&, const CreateTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTableAsyncHandler;
@@ -1418,6 +1423,9 @@ namespace AlibabaCloud
CreateRemindOutcome createRemind(const Model::CreateRemindRequest &request)const;
void createRemindAsync(const Model::CreateRemindRequest& request, const CreateRemindAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateRemindOutcomeCallable createRemindCallable(const Model::CreateRemindRequest& request) const;
CreateResourceFileOutcome createResourceFile(const Model::CreateResourceFileRequest &request)const;
void createResourceFileAsync(const Model::CreateResourceFileRequest& request, const CreateResourceFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateResourceFileOutcomeCallable createResourceFileCallable(const Model::CreateResourceFileRequest& request) const;
CreateTableOutcome createTable(const Model::CreateTableRequest &request)const;
void createTableAsync(const Model::CreateTableRequest& request, const CreateTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateTableOutcomeCallable createTableCallable(const Model::CreateTableRequest& request) const;

View File

@@ -56,6 +56,8 @@ public:
void setAutoRerunIntervalMillis(int autoRerunIntervalMillis);
std::string getInputList() const;
void setInputList(const std::string &inputList);
bool getCreateFolderIfNotExists() const;
void setCreateFolderIfNotExists(bool createFolderIfNotExists);
std::string getRerunMode() const;
void setRerunMode(const std::string &rerunMode);
std::string getConnectionName() const;
@@ -105,6 +107,7 @@ private:
std::string owner_;
int autoRerunIntervalMillis_;
std::string inputList_;
bool createFolderIfNotExists_;
std::string rerunMode_;
std::string connectionName_;
std::string outputParameters_;

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILEREQUEST_H_
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILEREQUEST_H_
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Dataworks_public {
namespace Model {
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateResourceFileRequest : public RpcServiceRequest {
public:
CreateResourceFileRequest();
~CreateResourceFileRequest();
int getFileType() const;
void setFileType(int fileType);
std::string getContent() const;
void setContent(const std::string &content);
std::string getResourceFile() const;
void setResourceFile(const std::string &resourceFile);
std::string getOriginResourceName() const;
void setOriginResourceName(const std::string &originResourceName);
long getProjectId() const;
void setProjectId(long projectId);
std::string getStorageURL() const;
void setStorageURL(const std::string &storageURL);
std::string getOwner() const;
void setOwner(const std::string &owner);
bool getRegisterToCalcEngine() const;
void setRegisterToCalcEngine(bool registerToCalcEngine);
bool getUploadMode() const;
void setUploadMode(bool uploadMode);
std::string getFileName() const;
void setFileName(const std::string &fileName);
std::string getFileFolderPath() const;
void setFileFolderPath(const std::string &fileFolderPath);
std::string getFileDescription() const;
void setFileDescription(const std::string &fileDescription);
private:
int fileType_;
std::string content_;
std::string resourceFile_;
std::string originResourceName_;
long projectId_;
std::string storageURL_;
std::string owner_;
bool registerToCalcEngine_;
bool uploadMode_;
std::string fileName_;
std::string fileFolderPath_;
std::string fileDescription_;
};
} // namespace Model
} // namespace Dataworks_public
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILEREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILERESULT_H_
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
namespace AlibabaCloud
{
namespace Dataworks_public
{
namespace Model
{
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateResourceFileResult : public ServiceResult
{
public:
CreateResourceFileResult();
explicit CreateResourceFileResult(const std::string &payload);
~CreateResourceFileResult();
long getData()const;
protected:
void parse(const std::string &payload);
private:
long data_;
};
}
}
}
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILERESULT_H_

View File

@@ -30,6 +30,8 @@ class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateUdfFileRequest : public RpcServ
public:
CreateUdfFileRequest();
~CreateUdfFileRequest();
bool getCreateFolderIfNotExists() const;
void setCreateFolderIfNotExists(bool createFolderIfNotExists);
std::string getReturnValue() const;
void setReturnValue(const std::string &returnValue);
std::string getResources() const;
@@ -56,6 +58,7 @@ public:
void setProjectId(long projectId);
private:
bool createFolderIfNotExists_;
std::string returnValue_;
std::string resources_;
std::string functionType_;

View File

@@ -34,14 +34,22 @@ public:
void setOwner(const std::string &owner);
std::string getFileTypes() const;
void setFileTypes(const std::string &fileTypes);
bool getNeedContent() const;
void setNeedContent(bool needContent);
bool getNeedAbsoluteFolderPath() const;
void setNeedAbsoluteFolderPath(bool needAbsoluteFolderPath);
std::string getProjectIdentifier() const;
void setProjectIdentifier(const std::string &projectIdentifier);
int getPageNumber() const;
void setPageNumber(int pageNumber);
std::string getFileIdIn() const;
void setFileIdIn(const std::string &fileIdIn);
std::string getFileFolderPath() const;
void setFileFolderPath(const std::string &fileFolderPath);
int getPageSize() const;
void setPageSize(int pageSize);
std::string getExactFileName() const;
void setExactFileName(const std::string &exactFileName);
std::string getKeyword() const;
void setKeyword(const std::string &keyword);
long getProjectId() const;
@@ -54,10 +62,14 @@ public:
private:
std::string owner_;
std::string fileTypes_;
bool needContent_;
bool needAbsoluteFolderPath_;
std::string projectIdentifier_;
int pageNumber_;
std::string fileIdIn_;
std::string fileFolderPath_;
int pageSize_;
std::string exactFileName_;
std::string keyword_;
long projectId_;
std::string useType_;

View File

@@ -50,6 +50,7 @@ namespace AlibabaCloud
int fileType;
std::string lastEditUser;
std::string content;
std::string absoluteFolderPath;
int commitStatus;
long nodeId;
bool autoParsing;

View File

@@ -1275,6 +1275,42 @@ Dataworks_publicClient::CreateRemindOutcomeCallable Dataworks_publicClient::crea
return task->get_future();
}
Dataworks_publicClient::CreateResourceFileOutcome Dataworks_publicClient::createResourceFile(const CreateResourceFileRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateResourceFileOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateResourceFileOutcome(CreateResourceFileResult(outcome.result()));
else
return CreateResourceFileOutcome(outcome.error());
}
void Dataworks_publicClient::createResourceFileAsync(const CreateResourceFileRequest& request, const CreateResourceFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createResourceFile(request), context);
};
asyncExecute(new Runnable(fn));
}
Dataworks_publicClient::CreateResourceFileOutcomeCallable Dataworks_publicClient::createResourceFileCallable(const CreateResourceFileRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateResourceFileOutcome()>>(
[this, request]()
{
return this->createResourceFile(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dataworks_publicClient::CreateTableOutcome Dataworks_publicClient::createTable(const CreateTableRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -142,6 +142,15 @@ void CreateFileRequest::setInputList(const std::string &inputList) {
setBodyParameter(std::string("InputList"), inputList);
}
bool CreateFileRequest::getCreateFolderIfNotExists() const {
return createFolderIfNotExists_;
}
void CreateFileRequest::setCreateFolderIfNotExists(bool createFolderIfNotExists) {
createFolderIfNotExists_ = createFolderIfNotExists;
setBodyParameter(std::string("CreateFolderIfNotExists"), createFolderIfNotExists ? "true" : "false");
}
std::string CreateFileRequest::getRerunMode() const {
return rerunMode_;
}

View File

@@ -0,0 +1,135 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/CreateResourceFileRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateResourceFileRequest;
CreateResourceFileRequest::CreateResourceFileRequest()
: RpcServiceRequest("dataworks-public", "2020-05-18", "CreateResourceFile") {
setMethod(HttpRequest::Method::Post);
}
CreateResourceFileRequest::~CreateResourceFileRequest() {}
int CreateResourceFileRequest::getFileType() const {
return fileType_;
}
void CreateResourceFileRequest::setFileType(int fileType) {
fileType_ = fileType;
setBodyParameter(std::string("FileType"), std::to_string(fileType));
}
std::string CreateResourceFileRequest::getContent() const {
return content_;
}
void CreateResourceFileRequest::setContent(const std::string &content) {
content_ = content;
setBodyParameter(std::string("Content"), content);
}
std::string CreateResourceFileRequest::getResourceFile() const {
return resourceFile_;
}
void CreateResourceFileRequest::setResourceFile(const std::string &resourceFile) {
resourceFile_ = resourceFile;
setBodyParameter(std::string("ResourceFile"), resourceFile);
}
std::string CreateResourceFileRequest::getOriginResourceName() const {
return originResourceName_;
}
void CreateResourceFileRequest::setOriginResourceName(const std::string &originResourceName) {
originResourceName_ = originResourceName;
setBodyParameter(std::string("OriginResourceName"), originResourceName);
}
long CreateResourceFileRequest::getProjectId() const {
return projectId_;
}
void CreateResourceFileRequest::setProjectId(long projectId) {
projectId_ = projectId;
setBodyParameter(std::string("ProjectId"), std::to_string(projectId));
}
std::string CreateResourceFileRequest::getStorageURL() const {
return storageURL_;
}
void CreateResourceFileRequest::setStorageURL(const std::string &storageURL) {
storageURL_ = storageURL;
setBodyParameter(std::string("StorageURL"), storageURL);
}
std::string CreateResourceFileRequest::getOwner() const {
return owner_;
}
void CreateResourceFileRequest::setOwner(const std::string &owner) {
owner_ = owner;
setBodyParameter(std::string("Owner"), owner);
}
bool CreateResourceFileRequest::getRegisterToCalcEngine() const {
return registerToCalcEngine_;
}
void CreateResourceFileRequest::setRegisterToCalcEngine(bool registerToCalcEngine) {
registerToCalcEngine_ = registerToCalcEngine;
setBodyParameter(std::string("RegisterToCalcEngine"), registerToCalcEngine ? "true" : "false");
}
bool CreateResourceFileRequest::getUploadMode() const {
return uploadMode_;
}
void CreateResourceFileRequest::setUploadMode(bool uploadMode) {
uploadMode_ = uploadMode;
setBodyParameter(std::string("UploadMode"), uploadMode ? "true" : "false");
}
std::string CreateResourceFileRequest::getFileName() const {
return fileName_;
}
void CreateResourceFileRequest::setFileName(const std::string &fileName) {
fileName_ = fileName;
setBodyParameter(std::string("FileName"), fileName);
}
std::string CreateResourceFileRequest::getFileFolderPath() const {
return fileFolderPath_;
}
void CreateResourceFileRequest::setFileFolderPath(const std::string &fileFolderPath) {
fileFolderPath_ = fileFolderPath;
setBodyParameter(std::string("FileFolderPath"), fileFolderPath);
}
std::string CreateResourceFileRequest::getFileDescription() const {
return fileDescription_;
}
void CreateResourceFileRequest::setFileDescription(const std::string &fileDescription) {
fileDescription_ = fileDescription;
setBodyParameter(std::string("FileDescription"), fileDescription);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/CreateResourceFileResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
CreateResourceFileResult::CreateResourceFileResult() :
ServiceResult()
{}
CreateResourceFileResult::CreateResourceFileResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateResourceFileResult::~CreateResourceFileResult()
{}
void CreateResourceFileResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = std::stol(value["Data"].asString());
}
long CreateResourceFileResult::getData()const
{
return data_;
}

View File

@@ -25,6 +25,15 @@ CreateUdfFileRequest::CreateUdfFileRequest()
CreateUdfFileRequest::~CreateUdfFileRequest() {}
bool CreateUdfFileRequest::getCreateFolderIfNotExists() const {
return createFolderIfNotExists_;
}
void CreateUdfFileRequest::setCreateFolderIfNotExists(bool createFolderIfNotExists) {
createFolderIfNotExists_ = createFolderIfNotExists;
setBodyParameter(std::string("CreateFolderIfNotExists"), createFolderIfNotExists ? "true" : "false");
}
std::string CreateUdfFileRequest::getReturnValue() const {
return returnValue_;
}

View File

@@ -43,6 +43,24 @@ void ListFilesRequest::setFileTypes(const std::string &fileTypes) {
setBodyParameter(std::string("FileTypes"), fileTypes);
}
bool ListFilesRequest::getNeedContent() const {
return needContent_;
}
void ListFilesRequest::setNeedContent(bool needContent) {
needContent_ = needContent;
setBodyParameter(std::string("NeedContent"), needContent ? "true" : "false");
}
bool ListFilesRequest::getNeedAbsoluteFolderPath() const {
return needAbsoluteFolderPath_;
}
void ListFilesRequest::setNeedAbsoluteFolderPath(bool needAbsoluteFolderPath) {
needAbsoluteFolderPath_ = needAbsoluteFolderPath;
setBodyParameter(std::string("NeedAbsoluteFolderPath"), needAbsoluteFolderPath ? "true" : "false");
}
std::string ListFilesRequest::getProjectIdentifier() const {
return projectIdentifier_;
}
@@ -61,6 +79,15 @@ void ListFilesRequest::setPageNumber(int pageNumber) {
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListFilesRequest::getFileIdIn() const {
return fileIdIn_;
}
void ListFilesRequest::setFileIdIn(const std::string &fileIdIn) {
fileIdIn_ = fileIdIn;
setBodyParameter(std::string("FileIdIn"), fileIdIn);
}
std::string ListFilesRequest::getFileFolderPath() const {
return fileFolderPath_;
}
@@ -79,6 +106,15 @@ void ListFilesRequest::setPageSize(int pageSize) {
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListFilesRequest::getExactFileName() const {
return exactFileName_;
}
void ListFilesRequest::setExactFileName(const std::string &exactFileName) {
exactFileName_ = exactFileName;
setBodyParameter(std::string("ExactFileName"), exactFileName);
}
std::string ListFilesRequest::getKeyword() const {
return keyword_;
}

View File

@@ -92,6 +92,8 @@ void ListFilesResult::parse(const std::string &payload)
fileObject.content = dataNodeFilesFile["Content"].asString();
if(!dataNodeFilesFile["NodeId"].isNull())
fileObject.nodeId = std::stol(dataNodeFilesFile["NodeId"].asString());
if(!dataNodeFilesFile["AbsoluteFolderPath"].isNull())
fileObject.absoluteFolderPath = dataNodeFilesFile["AbsoluteFolderPath"].asString();
data_.files.push_back(fileObject);
}
if(!value["HttpStatusCode"].isNull())

View File

@@ -39,15 +39,18 @@ namespace AlibabaCloud
int status;
int triggerType;
std::string progress;
std::string parameters;
std::string endTime;
long instanceId;
std::string workAddr;
std::string startTime;
std::string jobName;
std::string dataTime;
std::string result;
int timeType;
std::string executor;
std::string scheduleTime;
std::string traceId;
long jobId;
};
JobInstanceDetail jobInstanceDetail;

View File

@@ -46,12 +46,14 @@ namespace AlibabaCloud
{
struct Node
{
int status;
std::string endTime;
std::string scheduleTime;
int attempt;
long jobInstanceId;
std::string workAddr;
std::string startTime;
std::string jobName;
std::string dataTime;
long jobId;
std::string result;

View File

@@ -67,6 +67,12 @@ void GetJobInstanceResult::parse(const std::string &payload)
data_.jobInstanceDetail.dataTime = jobInstanceDetailNode["DataTime"].asString();
if(!jobInstanceDetailNode["WorkAddr"].isNull())
data_.jobInstanceDetail.workAddr = jobInstanceDetailNode["WorkAddr"].asString();
if(!jobInstanceDetailNode["Parameters"].isNull())
data_.jobInstanceDetail.parameters = jobInstanceDetailNode["Parameters"].asString();
if(!jobInstanceDetailNode["JobName"].isNull())
data_.jobInstanceDetail.jobName = jobInstanceDetailNode["JobName"].asString();
if(!jobInstanceDetailNode["TraceId"].isNull())
data_.jobInstanceDetail.traceId = jobInstanceDetailNode["TraceId"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())

View File

@@ -74,6 +74,10 @@ void GetWorkflowInstanceResult::parse(const std::string &payload)
nodeObject.result = wfInstanceDagNodeNodesNode["Result"].asString();
if(!wfInstanceDagNodeNodesNode["Attempt"].isNull())
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"];