Coder Social home page Coder Social logo

axelor-studio's Introduction

Axelor Studio

The main repository for Studio and BPM

Installation on a project using nexus dependencies

Add the following to the dependencies section of your build.gradle file:

implementation 'com.axelor.addons:axelor-studio:x.y.z'

Installation on a project as a git submodule

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'
apply from: 'modules/axelor-studio/settings.gradle'

Then, add the following lines to the dependencies section of your build.gradle file:

implementation project(':modules:axelor-studio')

And the following lines into the war task definition of your build.gradle file:

if (providers.systemProperty("include.react").getOrNull() != null) {
  dependsOn ':modules:axelor-studio:reactCopy'
  mustRunAfter ':modules:axelor-studio:reactCopy'
}

Then, add this line in the style.gradle file of your project if any, in the allprojects section right before the line apply plugin: com.diffplug.gradle.spotless.SpotlessPlugin:

if (!file('src/main/java').exists()) { return }

This is to prevent the spotless plugin from applying to the react subprojects in the axelor-studio module, which would cause an error.

Then, add the following lines to an ide.gradle file in the gradle directory of your project:

allprojects {
  apply plugin: 'idea'
  apply plugin: 'eclipse'
  eclipse {
    project {
      resourceFilter {
        matcher {
          id = 'org.eclipse.core.resources.regexFilterMatcher'
          arguments = ['node_modules', 'build']
        }
      }
    }
  }
}

And apply this file in the build.gradle file of your project:

apply from: 'gradle/ide.gradle'

Eventually, add the following line to the gradle.properties file of your project to minimize build times:

org.gradle.parallel=true

Finally, 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

General usage of Studio

To build a project with Studio for the first time you can use the following command in the root directory of the project:

# To build without studio's react apps (partial build) :
./gradlew clean assemble

# To build with studio's react apps (full build) :
./gradlew clean assemble -Dinclude.react

# To build with studio's react apps but without particular tasks, use exclusions, for example :
./gradlew clean assemble -Dinclude.react -xreactBuild -xreactClean

The reactBuild task will automatically install node dependencies and build the react apps in the axelor-studio module in the same time as java, xml and other tasks.

The reactClean task will clean the react apps in the axelor-studio module (deletion of node_modules and build folders).

Build results of axeolr-studio react apps will be copied in the webapp of your project and so will be included in the war by the studioReactCopy task which is made to run right before the war task.

BPM Groovy Script Variables

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 as LocalDate
  • __datetime__ - current datetime as LocalDateTime
  • __time__ - current time as LocalTime
  • __config__ - application configuration as axelor-config.properties
  • __beans__ - beans class as Beans.class
  • __ctx__ - workflow context helper as WkfContextHelper
  • __transform__ - workflow transformation helper for web service connector as WkfTransformationHelper
  • __repo__ - repository of given model class
  • __log__ - get the global instance of the Logger

axelor-studio's People

Contributors

lde-axelor avatar dde-axelor avatar aga-axelor avatar rsh-axelor avatar pco-axelor avatar sos-axelor avatar dtr-axelor avatar rch-axelor avatar aaa-axelor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.