Skip to content

Builtin Functions for Groovy and Template #2321

@predic8

Description

@predic8

Continue work on PR:

#2322

Goal:

Be able to use the same built in functions in groovy templates as in SpEL expressions.

      - template:
          src: |
            {
              "sub": "${fn.user()}",
            }

We are using the complied StreamingTemplateEngine from Groovy that is not dynamic as the other Template engines. So we cannot just implement it without fn : ${user()}!

Steps:

  1. Have a look at the changes from:

#2322

  1. Check out branch yaml-tutorial-2. The commit from above is committed there
  2. Implement the TODOs of the classes from the commit

Metadata

Metadata

Labels

No labels
No labels
No fields configured for Feature.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions