AnsweredAssumed Answered

Execution variable as InputStream

Question asked by rolintoucour on Sep 7, 2017

Hi,

 

Using activiti, we pass document as execution variable (from ServiceTask to other ServiceTasks). The type is byte[] (this is the most convenient way).

 

But we may have huge documents that break the memory. We'd like to use InputStream instead, so one ServiceTask will get an InputStream, and set an execution variable with it.

 

Problem is, doing so, it says that an inputstream cannot be serialized (so I guess that internally, execution variables are serialized).

 

Question is: is there any way to do it?

Outcomes