Deserialization issue on Resume with System.Activities.Runtime.ExecutionPropertyManager #209
-
We try to resume a WorkflowApplication instance from the FileInstanceStore of one of your examples and run into a Newtonsoft.Json.JsonSerializationException (see below). The deserialization fails becaus there is no default constructor in the class System.Activities.Runtime.ExecutionPropertyManager. However the ExecutionPropertyManager is flagged as [DataContract]. In my understanding it would be generally recommended to have a default constructor for each DataContract. Adding a default constructor solves the issue for me. Finally my question, whether there is a reason for not having a default constructor on System.Activities.Runtime.ExecutionPropertyManager. The exception message and stacktrace I get on resuming a WorkflowApplication instance from an existing GUID.
-- EDIT -- |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Dear I have the same question, but I think that is not CoreWF's problem. you can assign a JsonConverter for the ExecutionPropertyManager class. the sample code is :
class ExecutionPropertyManagerConverter : JsonConverter
|
Beta Was this translation helpful? Give feedback.
https://uipath.visualstudio.com/Public.Feeds/_artifacts/feed/UiPath-Internal/NuGet/UiPath.Workflow/overview/6.0.0-20221018-03