From 57366e597b288a762811d34ac3eb07cad763ce0f Mon Sep 17 00:00:00 2001 From: Recolic K <bensl@microsoft.com> Date: Fri, 14 May 2021 13:21:41 +0800 Subject: [PATCH] . --- activity.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/activity.hpp b/activity.hpp index 6c58565..751916a 100644 --- a/activity.hpp +++ b/activity.hpp @@ -35,9 +35,13 @@ namespace CIS { // All `Name` should not contain QuotationMark(") Activity(string displayName, string className, string entityName = "") : displayName(Utility::HtmlEscapeString(displayName)), className(className), entityName(entityName), taskId(Utility::GenUUID()) {} + Activity(const Activity &another) + : displayName(another.displayName), className(another.className), entityName(another.entityName), taskId(Utility::GenUUID()), inputSettings(another.inputSettings) {} + Activity(Activity &&) = default; - void addInputSetting(string k, string v) { + Activity &addInputSetting(string k, string v) { inputSettings[k] = v; + return *this; } void explicitSetRawArgument(string argTypeInXaml, string argValueInCSharp) { throw std::runtime_error("NotSupported! Activity seems doesn't support custom type inputSettings at all. Refer to commit 7fd539d6d5f6b102337da9591217b781cb71ced9 if we get new info and want to support it again. "); -- GitLab