Access uploaded file in Groovy Script

cancel
Showing results for 
Search instead for 
Did you mean: 
jvaidya
Active Member II

Re: Access uploaded file in Groovy Script

Jump to solution

Thanks so much that's really helpful! Unfortunately, I'm getting this error: 

problem evaluating script: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: relatedContentService for class: Script1

Any thoughts? 

gdharley
Intermediate

Re: Access uploaded file in Groovy Script

Jump to solution

No idea, I built this just now in my 1.6.1 environment and it runs ok (Process Services 1.6.1 on Tomcat).

jvaidya
Active Member II

Re: Access uploaded file in Groovy Script

Jump to solution

Managed to solve this issue! We had to change the activiti-app.properties configuration file to set:

# Beans whitelisting
beans.whitelisting.enabled=false

# EL whitelisting
el.whitelisting.enabled=false

gdharley
Intermediate

Re: Access uploaded file in Groovy Script

Jump to solution

Ahh yes, Alfresco in their infinite wisdom decided to lock down security by disabling access to beans without telling anyone in 1.6.

Should have thought of that.

Greg

#bp3