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

Version 1 Next »

What is a Pipeline Util?

Inside a Pipeline Expression you can access a huge library of built-in PEL Utils (= Pipeline Expression Language Utils), which can additionally simplify your integration and automation tasks.

See the reference docs for a full list of all available utils.

If you're missing a util there, please drop a note.

Usage

Such a util is always embedded inside a Pipeline Expression and has a structure like this:

@util.method(args...)

Whereas you need to replace util by the util name, method by the method name you would like to call and args by the optional arguments to the method you would like to execute.

Examples for @date

Here is an example to return the current date using such a util without any argument:

@date.now()

And here a fully working example, embedded inside a Pipeline Expression:

pipeline:  
  - log:  
      message: "The current date is: #{@date.now()}"  

Examples for @list

vars:
  cities: "Munich, Bratislava, New York"
pipeline:
  - log: 
      message: "#{@list.size(vars.cities)}"

Output:

3

Examples for @text

pipeline:
  - log: 
      message: "#{@text.lang('Hallo, Herr Meier!')}"

Output:

GERMAN

Auto-completion

In case you're working with the Online Workbench you can get auto-completion of all Utils out-of-the-box:

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.