cancel
Showing results for 
Search instead for 
Did you mean: 

List<HistoricProcessInstance> not serializable?

cweber
Champ in-the-making
Champ in-the-making
Hi. Is there a reason why a List of HistoricProcessInstances

List<HistoricProcessInstance> ls = processEngine.getHistoryService().createHistoricProcessInstanceQuery().list(); 

is not serializable even if a list of

List<ProcessInstance> ls = processEngine.getRepositoryService().createProcessInstanceQuery().list();

is.


Would it be possible to get a list of historic process instances that is serializable? If yes, can somebody tell me how?
6 REPLIES 6

frederikherema1
Star Contributor
Star Contributor
Looks like the HistoricProcessInstanceEntity doesn't implement Serializable… There is no reasoning behind this, I guess some entities are marked as serializable and others not. Can you file a JIRA-issue to make implementing serializable consistent throughout our Entities?

cweber
Champ in-the-making
Champ in-the-making
Hi. I created an jira issue. 
http://jira.codehaus.org/browse/ACT-1278

Hope this one is okay.

Is there a possibility that it get fixed soon (maybe before the next release?).

frederikherema1
Star Contributor
Star Contributor
Since it requires not a lot of work, this can be implemented for 5.10

cweber
Champ in-the-making
Champ in-the-making
would be great. Thanks

cweber
Champ in-the-making
Champ in-the-making
Also the HistoryTaskInstance object is not serializable, too.
Is it possible to fix this, too?

frederikherema1
Star Contributor
Star Contributor
I checked ALL the entities in the issue, so yes, this is fixed as well.