REL Expressions
REL (Redwood Expression Language) is a Java-based language which can be used to implement complex functionality. Redwood Finance Automation provides a variety of pre-implemented REL expressions which can be used within any Redwood Finance Automation scenario.
note
To use the REL functions appropriately, they must be prefixed with the library name (<partition>.<library_name>
). For example you would use =FCA.Redwood_FCA.getCurrentUser(chainJobId)
to get the user that submitted the process, using the standard Redwood Finance Automation library FCA.Redwood_FCA
. If the definition is in the same partition as the library, you can specify $
instead of the partition name, such as =$.Redwood_FCA.getCurrentUser(chainJobId)
.
REL is a simple expression language that supports basic arithmetic and comparison operators, and some predefined functions.
You can create your own functions for use in REL and RedwoodScript using a library with REL entry points.
The REL can be used to specify:
- Definition parameter default values
- Definition return code mappings
- Step preconditions
- Call preconditions
- Parameter mappings
- Scheduling parameter mappings
- Event raiser comments *...
Syntax
Fields that accept REL expressions
Operators
Redwood Expression Language provides support for the basic arithmetic operators:
+
- addition and string concatenation-
- subtraction*
- multiplication/
- division%
- integer modulus&&
- logical AND||
- logical OR!
- NOT
It also supports comparison:
===
- equal to!==
- not equal to>
- greater than>=
- greater than or equal
financeTopic