Reputation: 19
I noticed that when I create a complex variable using the APIs, the object is saved as a byte array which makes it impossible to search tasks based on values in this object, Is there any way to save the object as a json object or any other simpler form ?
Upvotes: 0
Views: 798
Reputation: 3240
The obvious answer to your question would be to create a custom serializer/deserializer for your complex type as documented here:
http://blog.progs.be/628/activiti-variables-json
However, I recommend you consider making use of the Activiti Event system to export process events to a nosql store such as Elasticsearch. This way, you can easily search and filter on process variables for reporting purposes.
A sample project demonstrating a simple Elasticsearch implementation for Camunda (
https://github.com/camunda/camunda-bpm-elasticsearch
Upvotes: 3