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.ScriptAppService
# 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
# Defines the history time to live (TTL) for BPM process instances. Default: P180D (180 days)
# The value can be:
# - A plain number of days (180)
# - An ISO-8601 period in days (P180D)
studio.bpm.history.time.to.live = P180D
Some variables can 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__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 |
| 3.4 | 7.3 | 8.3 |
| 3.5 | 7.4 | 8.4 |
| 4.0 | 8.0 | 9.0 |