Functions used for special purpose are introduced.

CHANGELOG()

Retrieve update history.Please read "How to manage change history of data with repeating container" for usage.

As described on the above page, this function is assumed to be used repeatedly in a container.Please do not use it elsewhere.

EXEC (Execution directory, command, argument ...)

Execute the command of the second argument at the directory position of the first argument.Multiple command line arguments can be specified after the third argument, separated by commas.The return value is the execution result (character string).

Get the directory list of the folder where Wagby is installed

EXEC("../..", "cmd", "/C", "dir")
EXEC("../..", "ls", "-al")
The first example is for Windows OS, the next is for Linux OS.cmd.exe is a DOS command that is included in the standard with Windows OS.

The current directory when the Wagby application is executed is wagbyapp/bin.In the example above, directory is specified by relative path notation.

How to specify the runtime folder

The current folder is represented by ".".You can not pass empty characters as "".
Please do not end with the folder delimiter "/".For example, write "../." Instead of "../".

Create a folder

An example of preparing a new folder named work1 in the folder where Wagby is installed.

EXEC("../..", "cmd", "/C", "mkdir", "work1")
EXEC("../..", "mkdir", "work1")
The first example is for Windows OS, the next is for Linux OS.cmd.exe is a DOS command that is included in the standard with Windows OS.

Me()

The pseudo function Me (note: 'e' in the second letter is lower case) indicates the item name describing this expression.For example, using Me () in the item1 item expression will replace the Me () part with $ {item1}.

An example

IF (Me() > 0; 100, 0)

The purpose of Me () is to be able to unify item name parts when setting the same expression to multiple items.You can reuse copied and pasted expressions.