The main repository for Studio and BPM
Add the following to the dependencies section of your build.gradle file:
implementation 'com.axelor.addons:axelor-studio:x.y.z'
Firstly, clone the project in your webapp's modules.
Then, add the following lines to the settings.gradle file of your project:
include 'modules:axelor-studio'
Then, add the following lines to the dependencies section of your build.gradle file:
implementation project(':modules:axelor-studio')
Add the following lines to the axelor-config.properties file of your project:
# Install apps. This deprecate the old 'aos.apps.install-apps' property
studio.apps.install = all
# Enable utils api. This deprecate the old 'aos.api.enable' property
utils.api.enable = true
# Custom context values
# ~~~~~
context.app = com.axelor.studio.app.service.AppService
# Enable BPMN logging
studio.bpm.logging = true
# Configure Utils process timeout
utils.process.timeout = 10
Some variables are available to be used with groovy script expressions in BPM. This includes:
__studiouser__
- current user or admin if no user__date__
- current date asLocalDate
__datetime__
- current datetime asLocalDateTime
__time__
- current time asLocalTime
__config__
- application configuration asaxelor-config.properties
__beans__
- beans class asBeans.class
__ctx__
- workflow context helper asWkfContextHelper
__transform__
- workflow transformation helper for web service connector asWkfTransformationHelper
__repo__
- repository of given model class__log__
- get the global instance of the Logger