Open danielleiszen opened 1 year ago
As it turned out for me, checking the codebase - that the default constructor has been added to the class at Oct 12, 2022, however your latest NuGet package is published at 4/1/2022...
So the solution is even more easier than I thought.
Please, update the NuGet package!
Thank you
We have a workflow that we use in our business logic. We run that workflow using the CoreWF runtime. We have certain custom activities and one of them creates a bookmark and makes the workflow wait for input. In that case the workflow is being serialized. We are using a JSON custom serializer based on your JsonFileInstanceStore example.
Whenever the workflow is persisted, it cannot be loaded back again due to a JSON deserialization error:
The exception occures, since CompiledLocation<> class is internal and there is no default constructor for it. Nonetheless, the serialized workflow contains that type and hence the deserializer mechanism is trying to create an instance of that class.
It would be possible to create a custom serializer if any of our logic could create an instance of the class.
Proposal to elminate the issue:
The important section of the serialized workflow follows:
Thank you in advance...