AnsweredAssumed Answered

Starting a process with MultipartFile object  and accessing it from DelegateExecution object

Question asked by prash.aggarwal on Sep 5, 2016
Latest reply on Sep 6, 2016 by prash.aggarwal
Hi,

I am uploading a file and getting it as MultipartFile object in my controller, i need to pass it when starting the process and access the file object in one of my java tasks using MultipartFile file = (MultipartFile)execution.getVariable("file");

Can i do that, it gives me
org.activiti.engine.ActivitiException: Couldn't serialize value 'org.springframework.web.multipart.support.StandardMultipartHttpServletRequest$StandardMultipartFile@1b1dcf7' in variable 'file'

The file is not getting serialized itself when starting the process and hence the failure.

Please let me know how can i do this?

Regards

Outcomes