diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 2f2c6e39..c380e839 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,6 +1,6 @@ - 6.0.0 + 6.0.2 4.5.0-2.22527.10 true true diff --git a/src/UiPath.Workflow.Runtime/Bookmark.cs b/src/UiPath.Workflow.Runtime/Bookmark.cs index 29bc44be..d577dcae 100644 --- a/src/UiPath.Workflow.Runtime/Bookmark.cs +++ b/src/UiPath.Workflow.Runtime/Bookmark.cs @@ -110,7 +110,7 @@ internal BookmarkInfo GenerateBookmarkInfo(BookmarkCallbackWrapper bookmarkCallb scopeInfo = Scope.GenerateScopeInfo(); } - return new BookmarkInfo(_externalName, bookmarkCallback.ActivityInstance.Activity.DisplayName, scopeInfo); + return new BookmarkInfo(_externalName, bookmarkCallback.ActivityInstance.Activity.DisplayName, scopeInfo, bookmarkCallback.ActivityInstance.Activity); } public bool Equals(Bookmark other) diff --git a/src/UiPath.Workflow.Runtime/Hosting/BookmarkInfo.cs b/src/UiPath.Workflow.Runtime/Hosting/BookmarkInfo.cs index f639597a..c474b081 100644 --- a/src/UiPath.Workflow.Runtime/Hosting/BookmarkInfo.cs +++ b/src/UiPath.Workflow.Runtime/Hosting/BookmarkInfo.cs @@ -12,13 +12,15 @@ public sealed class BookmarkInfo private string _bookmarkName; private BookmarkScopeInfo _scopeInfo; private string _ownerDisplayName; + private Activity _owner; internal BookmarkInfo() { } - internal BookmarkInfo(string bookmarkName, string ownerDisplayName, BookmarkScopeInfo scopeInfo) + internal BookmarkInfo(string bookmarkName, string ownerDisplayName, BookmarkScopeInfo scopeInfo, Activity owner) { BookmarkName = bookmarkName; OwnerDisplayName = ownerDisplayName; ScopeInfo = scopeInfo; + _owner = owner; } public string BookmarkName @@ -39,6 +41,12 @@ public BookmarkScopeInfo ScopeInfo private set => _scopeInfo = value; } + public Activity Owner + { + get => _owner; + set => _owner = value; + } + [DataMember(Name = "BookmarkName")] internal string SerializedBookmarkName {