08-13-2014 04:04 AM
classLoader
property of org.activiti.engine.ProcessEngineConfiguration
;org.activiti.engine.impl.context.Context.getExecutionContext().getProcessDefinition().getDeploymentId()
method for deployment context.org.activiti.engine.impl.variable.SerializableType
:
protected ObjectInputStream createObjectInputStream(InputStream is) throws IOException {
return new ObjectInputStream(is) {
protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException {
return ReflectUtil.loadClass(desc.getName());
}
};
}
org.activiti.engine.impl.variable.SerializableType
and org.activiti.engine.impl.variable.DeserializedObject
are rather poorly designed:org.activiti.engine.impl.variable.SerializableType.createObjectOutputStream
, since it's private static – you have to copy/paste entire methods calling it. Its fellow method createObjectInputStream is protected and not static.org.activiti.engine.impl.variable.DeserializedObject.flush()
uses static method mentioned above, you have to overrride the entire method and also override methods containing creation of deserialized object in org.activiti.engine.impl.variable.SerializableType
. I would suggest deserialized object calling callback method for serialization in the creating object, which is subject to overriding.08-19-2014 05:31 AM
08-19-2014 11:08 AM
08-20-2014 02:59 AM
08-30-2014 12:19 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.