org.drools.runtime.process.ProcessInstance o2) {
return (int) (o1.getId() - o2.getId());
}
} );
for ( org.drools.runtime.process.ProcessInstance processInstance : processInstances ) {
stream.writeShort(PersisterEnums.PROCESS_INSTANCE);
String processType = processInstance.getProcess().getType();
stream.writeUTF(processType);
ProcessMarshallerRegistry.INSTANCE.getMarshaller(processType)
.writeProcessInstance(context, processInstance);
}