Our new Appfire Documentation Space is now live!

Take a look here! If you have any questions please email support@appfire.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »


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. It is easy to learn, has smooth Java integration, vibrant and rich ecosystem and powerful features. To know more about Groovy, see the official Groovy Documentation.

On this page:

Learning Groovy

To learn more about the Groovy language:

Groovy in JMCF

Groovy can be used in JMCF to write a Groovy script in the Groovy Formula section of the custom field configuration of a:

  • Calculated Date/Time Field, such as Groovy expression returning a Date/Timestamp
  • , to return the result of the evaluation of a script, such as the addition of two other fields.
  • Calculated Number Field, to return the result of the evaluation of a script, such as the addition of two other fields.
  • Calculated Text Field, to return the result of the evaluation of a script, such as the concatenation of two other fields.
  • Calculated Duration Field, such as a Groovy expression returning a string representing a duration or a number in Long format representing the number of seconds
  • Calculated Multi-select Field, such as a Groovy expression returning a string representing the value of an option.
  • Calculated Single-select Field, such as a Groovy expression returning a string representing the value of an option.

Groovy can also be used to format the value of a Calculated Number Field.

Writing Groovy scripts in JMCF

To learn how to write groovy scripts for JMCF, see:

  • No labels