Find out the advantage of APS scripting using its graphical interface and how that reduces your development lifecycle. Pros and cons of this approach versus the more traditional JAR file deployment.
13. Learn. Connect. Collaborate.
Script vs Java - Deployment Life Cycle
IDE
Update App Model
Publish App
Restart
Place on
Classpath
actitivi-app
Generate
Java
Backed
~ couple of minutes
Script
Backed
~ few seconds
14. Learn. Connect. Collaborate.
Script vs Java
Update App Model
Publish App
Java Backed
Reuse code
Debug
Unit Test
Active Process
Instances
Script Backed
Reuse code
Debug
Unit Test
Active Process
Instances
15. Learn. Connect. Collaborate.
Script vs Java – Which one to choose
Time
required to
implement
the solution
Complexity of the solution
ScriptJava
17. Learn. Connect. Collaborate.
APS Scripting
Enable scripts
Set properties
validator.editor.bpmn.disable.scripttask=false
validator.editor.bpmn.disable.scripttask.groovy=false
File: activiti-app.properties
Location: activiti-appWEB-INFclassesMETA-INFactiviti-app
Let’s make it work
18. Learn. Connect. Collaborate.
APS Scripting
Enable scripts
Uncomment the language you want to use
File: whitelisted-scripts.conf
Location: activiti-appWEB-INFclassesactiviti
Let’s make it work
31. Learn. Connect. Collaborate.
Custom Spring Beans
• Create a bean
Package: com.activiti.extension.bean
• Deploy the JAR file generated
Location: activiti-appWEB-INFlib
• Add your bean name to
File: beans-whitelist.conf
Location: activiti-appWEB-INFclassesactiviti Custom Beans, Cool!
43. Learn. Connect. Collaborate.
Custom REST API - Example
User sets the values on the app
form and completes the task
Script task calls the ACS API to
create the folder structure