A playground to see how scripting in Pricing Engine works
If you are familiar with version control (more specifically, Git) you may choose to clone this repository.
Alternatively, you can download a ZIP archive containing the source code of this project. Unzip the archive to an appropriate working folder on your hard drive.
We recommend to use IntelliJ IDEA Community Edition with this project.
Community Edition is free to use for personal and commercial development. The IDE and most of it bundled plugins are open-source, licensed under Apache 2.0.
Please download the correct version for your operating system, install it, and start it.
- In the "Welcome to IntelliJ IDEA" dialog click the "Open" button, navigate to the folder where you unzipped the ZIP archive with the code and select the "pom.xml" file.
- Next, choose to "Open as project".
- Navigate to the "File" menu, choose "Project Structure". In the dialog go to the "SDKs" tab and click the "+" at the top. From here you can "Download JDK...". Choose Version "16" and Vendor "Azul Zulu Community".
You are now set to give the scripting capabilities a try. You can use the "Sandbox.groovy" class to get some feedback on the results of the scripts.
Pricing Engine uses Groovy for its scripts. The official Groovy documentation can be found here.
You can find a collection of script examples here, and best practices here.