Skip to content
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

Serialization of variable of object #2074

Closed
daisuke-yoshimoto opened this issue Oct 20, 2018 · 8 comments
Closed

Serialization of variable of object #2074

daisuke-yoshimoto opened this issue Oct 20, 2018 · 8 comments
Assignees
Labels
Milestone

Comments

@daisuke-yoshimoto
Copy link
Contributor

Class loading problem in cloud

  • In MicroService approach, each service does not necessarily share the same class definition.Therefore, it is necessary to exchange between services by general data method.

SerializableType variable in Activiti

SerializableType variable in Activiti Cloud

@daisuke-yoshimoto
Copy link
Contributor Author

Perhaps it may be related to the following issues as well.
#2049

@qiudaoke
Copy link
Contributor

The way to get a Serializable variable value is to do:

SomeSerializable myVar = (SomeSerializable) runtimeService.getVariable(processInstance.getId(), "myVar");

Doing getValue on a list of variable instances is not recommended, because for a list of 10 Serializable variables this would mean 10 database calls to the ACT_GE_BYTEARRAY table.

@daisuke-yoshimoto
Copy link
Contributor Author

@qiudaoke
Thanks. I see.
But, after understanding it, we are discussing the method of serialization here.

SerializableType is Java's native serialization method, but this should not be used in a cloud environment. It is an argument that JSON should be used.

@qiudaoke
Copy link
Contributor

Using json is a good suggestion.

@salaboy salaboy added this to the Beta3 milestone Nov 1, 2018
@salaboy salaboy added this to Open in Activiti 7.x via automation Nov 1, 2018
@ryandawsonuk
Copy link
Contributor

Is anyone currently working on this? Just want to check what the current status is.

@daisuke-yoshimoto
Copy link
Contributor Author

@ryandawsonuk
Sorry. I'm not working on this now. No progress.

@ryandawsonuk
Copy link
Contributor

That's fine, thanks for the update.

@salaboy salaboy modified the milestones: Beta3, Beta4 Nov 9, 2018
@ryandawsonuk
Copy link
Contributor

FYI, I'm now working on providing a way to serialize to json without needing the type of the variable object to be JsonNode - work ongoing under https://github.com/Activiti/Activiti/commits/balsarori-2049-process-vars-extension for #2049

@salaboy salaboy modified the milestones: Beta4, Beta5 Nov 12, 2018
@salaboy salaboy closed this as completed Dec 21, 2018
Activiti 7.x automation moved this from Open to Closed Dec 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Activiti 7.x
  
Closed
Development

No branches or pull requests

4 participants