InterFormNG2 comes with multiple built-in XPath functions. The built-in functions can be used XPath expression in both the designer and in the workflow.
While editing an XPath expression you can click the icon looking like a magnifying glass:
- and then you will see this:
If you now click Built-in functions on the right, then you can see the list of the built-in XPath functions, that you can use freely in InterFormNG2:
(All are described in the sections below).
1.ng:base64 Converts a string into Base64 encoded string.
2.ng:base64EncodeFile. Returns the converted contents of a file into a Base64 encoded string.
3.ng:base64EncodeResource Returns the result of a conversion of the contents of a Library resource into a Base64 encoded string.
4.ng:databaseLookup. This makes it possible to run an SQL lookup anywhere in InterFormNG2 - including the designer.
5.ng:compare. This can be used for comparing two texts or numbers.This often is a better tool than a simple compare with <>!=, as a comparison with e.g. null can give another result than expected like described in the sections: Verify if a node exists, Test if a node is not blank and Test if a node is blank.
6.ng:dateFormat Converts almost any date format into anothe date format.
7.ng:dateTimeFormat Converts a timestamp (date and time) into the format of your choice.
8.ng:fileExist Verifies if a file exists. A related function is ng:resourceExist.
9.ng:hexToUtf8 Converts a sequence of hex characters into the equivalent UTF-8 characters.