3 #include <Poco/Logger.h>
18 : message(message_), dir(dir_)
30 if (resultData.getItemsCount()!=1)
33 std::string json = makeJson(resultData);
34 if (!json.empty() && resultData.getDataItem(0).getRequestId())
37 if (dataFile.exists())
64 if (resultData.getItemsCount()!=1)
67 std::string json = getStatusJson(resultData);
68 if (!json.empty() && resultData.getDataItem(0).getRequestId())
75 for (
size_t i=0;i<resultData.getItemsCount();++i)
79 localResultData.
addDataItem(std::forward<DRCEResultDataItem>(resultDataItem));
81 return makeJson(localResultData);
93 resultDataItem.
setSubtaskItem(i, std::forward<DRCEResultDataItem>(resultItem));
105 std::string resultJson;
106 if (!inputJsonMessage.serialize(resultJson))
107 throw Poco::Exception(inputJsonMessage.getErrorMsg(), inputJsonMessage.getErrorCode());
109 if (!resultJson.empty() && inputJsonMessage.getRequestId())
112 if (requestFile.exists())
113 requestFile.remove();
116 fileStream << resultJson;