Upload file and start process

I need to start a process when I get a file uploaded by a client (through REST, not through forms app)
In my spring Boot app, I have a rest controller that gets the file.
How can I start the process from this point? (The file is sent to an HTTP task in order to be processed).
I tried to call runtimeService.startProcessInstanceByKey(“key”, map) but then I need to pass the file to a map.
However I don’t want the file to be serialized/persisted. I would like it to be in memory. Is there a transient map or a better solution?


You can use below code: You can read more about transient variable here

.transientVariable(“configParam01”, “A”)


Thank you very much. That works perfectly.