Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column

Introduction to Groovy

Groovy is an object-oriented programming language for the Java platform. It is a dynamic language with features similar to those of PythonRubyPerl, and Smalltalk. It can be used as a scripting language for the Java Platform. To know more about Groovy, see the Groovy Documentation.

Groovy in JMWE

Groovy script results in JMWE are used to:

Column
width350px
Panel
borderColorsilver
bgColor#f5f5f5
borderWidth1
borderStylesolid

On this page:

Table of Contents

Building Groovy scripts

You can learn writing groovy scripts either by going through the learning material or from the tutorials listed below:

Panel

Tutorials

  • Getting Started
    • Explain what this tutorial about
    • By the end of this tutorial...
    • List what do you need before you begin
  • Basics of Groovy
    • Skip this is you already know Groovy
    • Detail few basic concepts of Groovy
      • if, for, closure, lambda expressions, safe-navigation operator etc
    • References to Groovy tutorials (external)
  • Where do you write your Groovy script
    • Add a post-function,select "Groovy expression", Groovy editor is displayed.
    • Rough introduction on Groovy editor and reference to its page.
    Tutorial on writing conditions
  • Tutorial - Value of a text field
  • Tutorial - Write a condition
    • Simple condition - A text field is empty (either using if or return the result of the comparision)
    • Check the current user name. Using if 2. return the result of the comparision
  • Tutorial -
    • Using if
    • Directly returning the result
  • Comment
  • Value
  • Tutorial - Fetch the value of a text field
  • Tutorial - Safe access
  • Tutorial on
  • Return
  • Write a script that returns a user

Panel

Reference material