-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] ELSA 3.2.1 Serialization of workflow instances / Object list properties with MongoDb no longer working, circular references... #6049
Labels
bug
Something isn't working
Milestone
Comments
Still bugs in serialization within version 3.2.3. This breaks my whole program :(
|
Please help! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I have created a custom function
findEntities
which returns aList<ExpandoObject>
within Jint engine.With Version ELSA 3.2, I can call the function within a JavaScript activity. The result can be persisted within a variable using
the
setVariable(..)
method. For example:setVariable("MyArray", findEntities("x => x.Template != null"));
The MyArray variable is correctly persisted within the WorkflowState.
After update to Version ELSA 3.2.1, this leads to Maximum serialization depth exceeded within WorkflowInstance persistence...
Refer to attached log file...
Error: An error occurred while serializing the WorkflowState property of class Elsa.Workflows.Management.Entities.WorkflowInstance: An error occurred while serializing the ActivityExecutionContexts property of class Elsa.Workflows.State.WorkflowState: An error occurred while serializing the Properties property of class Elsa.Workflows.State.ActivityExecutionContextState: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: An error occurred while serializing the Parent property of class System.Text.Json.Nodes.JsonNode: Maximum serialization depth exceeded (does the object being serialized have a circular reference?).'
At the moment, within ELSA 3.2.1 it is impossible to persist any arrays within a workflow instance variable
Are the any breaking changes within WorkflowInstance Persistance? Critical bug?
Steps to Reproduce
Try to store an array property using the JavaScript activity and the setVariable method. For example
Reproduction Rate:
The text was updated successfully, but these errors were encountered: