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
#Controls the maximum number of idle database connections (default 10)
studio.bpm.max.idle.connections = 10
#Maximum number of active database connections (default 50)
studio.bpm.max.active.connections = 50
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
It is recommended to use the module with AOP and AOS versions as described below:
Studio module version | AOP compatible version | AOS compatible version |
---|---|---|
1.0 | 6.1 | 7.0 |
1.1 | 6.1 | 7.0 |
1.2 | 6.1 | 7.1 |
1.3 | 6.1 | 7.2 |
2.x | 7.0 | 8.0 |
3.1 | 7.1 | 8.1 |
3.2 | 7.1 | 8.1 |
3.3 | 7.2 | 8.2 |