AnsweredAssumed Answered

Access uploaded file in Groovy Script

Question asked by jvaidya on Jun 1, 2017
Latest reply on Jun 9, 2017 by gdharley

I'm trying to Base64 encode a file that a user uploads in an Activiti form, and then save the resulting encoding as a string to be accessed by other parts of the business process. I thought a Groovy Script in a Script task would be the best way to do this. How do I access the file in the script? 

 

Would something like: 

 

execution.getVariable('file'); 

 

give me access to the raw file? 

 

Thanks!

Outcomes