Service Task Class Whitelisting

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2020 12:34 PM
Hi,
I was trying to whitelist the JavaScript classes to get more control over execution of JavaScript classes in the Script task but after enabling some required services to 'true' in properties file, I got following error:
Access to Java class "org.activiti.engine.impl.persistence.entity.ExecutionEntity" is prohibited.
Following are the steps I executed to enabled servies:
- Added the script types in activiti-app/WEB-INF/classes/activiti/whitelisted-scripts.conf:
- javascript
- js
- ecmascript
- groovy
- juel
- Enabled javascript.secure-scripting.enabled=true
- Set javascript.secure-scripting.enable-class-whitelisting=true
- Added following to activiti-app/WEB-INF/classes/activiti/javascript-whitelist-classes.conf:
- java.lang.System
- java.util.ArrayList
- org.apache.tomcat.util.log.SystemLogHandler
Is there anything that I missed here?
Thanks for help.
- Labels:
-
Alfresco Process Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2020 06:25 AM
Check other settings from the APS SDK here:
Hope this helps

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2020 10:48 AM
Hi @openpj,
Thanks for reply.
I have not made changes to the following properties files/classes:
- beans-whitelist.conf
- call-whitelist.conf
- log4j.properties
- shell-commands-whitelist.conf
- version.properties
- whitelisted-classes.conf
Is it required to do so? I believe Whitelisting JavaScript is alternative to Bean Whitelisting.
