Panel | ||||
---|---|---|---|---|
|
...
Functions are entered using the following formats:
Panel | |
---|---|
Html bobswift | ${_function}
${_function(arg1, ..., argN)}
</pre> |
Anchor | ||||
---|---|---|---|---|
|
...
- Functions must be written either:
- In all lower-case
...
- characters.
...
- Exactly
...
- as
...
- shown
...
- in
...
- the
...
- tables
...
- on
...
- this
...
- page.
...
- Functions have zero,
...
- one,
...
- or
...
- multiple
...
- parameters.
...
- Each
...
- function
...
- parameter
...
- is
...
- one
...
- of
...
- three
...
- specific
...
- types:
...
- String
- Integer
- Boolean
- String parameters must be enclosed in single or double quotation marks.
- Integer and Boolean parameters can be enclosed in single or double quotation marks.
- Optional parameters are identified on this page by being enclosed in [square brackets]. When copying a function from the documentation, be sure to remove the square brackets; otherwise, the function will not resolve.
- If a function has more than one optional parameter, any optional parameters preceding a specified optional parameter must be included in the function's parameter list. For example:
- For function
${_responseJsonPath('pathExpression'[,'defaultValue','delimiter',prettyPrint])}
- For function
...
- ,
...
- usage
...
${_responseJsonPath('.outputData','','',true)}
...
- would
...
- be
...
- valid,
...
- whereas
...
${_responseJsonPath('.outputData',,,true)}
...
- would
...
- not
...
- be
...
- valid.
...
- For
...
- function
...
${_formatDate(['date_time',
...
'format',
...
day_offset,
...
use_business_days,
...
hour_offset,
...
minute_offset,
...
timezone])}
...
- ,
...
- usage
...
${_formatDate('2018-09-01','',0,true)}
...
- would
...
- be
...
- valid,
...
- whereas
...
${_formatDate('2018-09-01','',,true)}
...
- would
...
- not
...
- be
...
- valid.
...
- All functions allow nesting to two levels. That is, a function can be an argument to another function, which itself can be an argument to another function.
- You must use a double underscore preceding the name of a first-level nested function.
- You must use a triple underscore preceding the name of a second-level nested function.
For example, for 2nd day of next month less one Business Day:
Panel |
---|
${_formatDate('${__dayOfMonth(2,'${___dateadv('yyyy-MM-dd',0,1)}')}','',-1,true)}</pre> |
Anchor | ||||
---|---|---|---|---|
|
Functions are listed alphabetically within the following categories on this page:
- Conditional functions
- Credential functions
- Date functions
- Mathematical functions
- Output functions
- Other Task functions
- SAP Connection functions
- Script functions
- SQL/Stored Procedure functions
- String functions
- System functions
- Universal Task functions
- Web Service Functions
Anchor | ||||
---|---|---|---|---|
|
...
Description | Returns a conditional value depending on the equality of two string parameters. | |||
---|---|---|---|---|
Syntax |
| |||
Parameters |
| |||
Examples |
|
Return Conditional Value Depending on Value of Boolean Parameter
Description | Returns a conditional value depending on the value of a boolean parameter. | |||
---|---|---|---|---|
Syntax |
| |||
Parameters |
| |||
Example |
|
...
Anchor | ||||
---|---|---|---|---|
|
...
Description | Checks if a date argument is equal to today's date in the specified format. | |||
---|---|---|---|---|
Syntax |
| |||
Parameters |
| |||
Examples |
|
Anchor | ||||
---|---|---|---|---|
|
Description | Resolves to the current date and time. | |||
---|---|---|---|---|
Syntax |
| |||
Parameters | Html bobswift |
Html bobswift |
| |
Examples |
|
Resolve to Current Date and Time (Advanced)
Description | Resolves to the current date and time. | |||
---|---|---|---|---|
Syntax |
| |||
Parameters | Html bobswift |
Html bobswift |
| |
Examples |
|
Resolve to Current Unix Epoch Time
...
Description | Returns the date after applying offsets. Optionally, can specify the output format.
| ||||||
---|---|---|---|---|---|---|---|
Syntax |
| ||||||
Parameters | Html bobswift |
Html bobswift |
| Example | Panel | Html bobswift |
|
Example |
|
Return Date with Offsets (Advanced)
Description | Returns the date after applying offsets. Optionally, can specify the output format.
| ||||||
---|---|---|---|---|---|---|---|
Syntax |
| ||||||
Parameters | Html bobswift |
Html bobswift |
| Examples | Panel | Html bobswift |
|
Examples |
|
Return Date with Time Zone
Description | Returns the Date and Time in another time zone. | |||
---|---|---|---|---|
Syntax |
| |||
Parameters | Html bobswift |
| ||
Examples |
|
Return Day of Week
Description | Returns the day of week for the specified date as a number. | |||
---|---|---|---|---|
Syntax |
| |||
Parameters | Html bobswift |
| ||
Example |
|
Return Days between Dates
Description | Returns the number of days between date1 and date2. html-bobswift<ul> <li>
The start date is inclusive, but the end date is not. | |||
---|---|---|---|---|
Syntax |
| |||
Parameters | Html bobswift |
date1 and date2 are specified in any of the following formats:
| ||
Example |
|
Return Non-Business Day of Month
Description | Returns the Nth non-business day of month for the month of the date specified. Optionally, can start from the end of the month.
| |||||||
---|---|---|---|---|---|---|---|---|
Syntax |
| |||||||
Parameters | Html bobswift |
| Examples | Panel | Html bobswift |
| ||
Examples |
|
Return Nth Business Day of Month
Description | Returns the Nth business day of month for the month of the date specified. Optionally, can start from the end of the month.
| |||
---|---|---|---|---|
Syntax |
| |||
Parameters | Html bobswift |
Html bobswift |
| |
Examples |
|
Return Nth Day of Month
Description | Returns the Nth day of month for the month of the date specified. Optionally, can start from the end of the month. | |||||
---|---|---|---|---|---|---|
Syntax |
| |||||
Parameters | Html bobswift |
| Examples | Panel | Html bobswift |
|
Examples |
|
Return Number of Business Days between Dates
Description | Returns the number of business days between date1 and date2. html-bobswift<ul> <li>
The start date is inclusive, but the end date is not.
| |||
---|---|---|---|---|
Syntax |
| |||
Parameters | Html bobswift |
date1 and date2 are specified in any of the following formats:
| ||
Example |
|
Anchor | ||||
---|---|---|---|---|
|
...
Description | Return the sum of the augend added with the addend. | ||||||
---|---|---|---|---|---|---|---|
Syntax |
| ||||||
Parameters |
| ||||||
Example |
|
Divide
Description | Return the quotient of the dividend divided by divisor. | ||||||
---|---|---|---|---|---|---|---|
Syntax |
| ||||||
Parameters |
| ||||||
Example |
|
Multiply
Description | Return the product of the multiplicand multiplied with the multiplier. | ||||||
---|---|---|---|---|---|---|---|
Syntax |
| ||||||
Parameters |
| ||||||
Example |
|
Return Absolute Value
Description | Return the absolute value of the parameter. | ||||||
---|---|---|---|---|---|---|---|
Syntax |
| ||||||
Parameters |
| ||||||
Example |
|
Return Modulo
Description | Return the modulo (remainder) of the dividend divided by divisor. | ||||||
---|---|---|---|---|---|---|---|
Syntax |
| ||||||
Parameters |
| ||||||
Example |
|
Subtract
Description | Return the difference of the subtrahend subtracted from the minuend. | ||||||
---|---|---|---|---|---|---|---|
Syntax |
| ||||||
Parameters |
| ||||||
Example |
|
Anchor | ||||
---|---|---|---|---|
|
...
Description | Escapes the characters in a variable value using XML entities. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Syntax |
| ||||||||
Parameters |
| ||||||||
Example | Variable Name:
|
Anchor | ||||
---|---|---|---|---|
|
Description | Escapes the characters in a variable value using JSON string values. | ||||
---|---|---|---|---|---|
Syntax |
| ||||
Parameters |
| ||||
Example | Variable Name:
|
Anchor | ||||
---|---|---|---|---|
|
Description | Escapes the characters in a variable value using JavaScript String rules. | ||||
---|---|---|---|---|---|
Syntax |
| ||||
Parameters |
| ||||
Example | Variable Name:
|
Anchor | ||||
---|---|---|---|---|
|
Description | Escapes the characters in a variable value using HTML entities. (Supports all known HTML 4.0 entities.) | |||||||
---|---|---|---|---|---|---|---|---|
Syntax |
| |||||||
Parameters |
| |||||||
Example | Variable Name:
|
Anchor | ||||
---|---|---|---|---|
|
Description | Returns a literal regular expression pattern String for the value of the specified variable. | ||||
---|---|---|---|---|---|
Syntax |
| ||||
Parameters |
| ||||
Example | Variable Name:
|
Anchor | ||||
---|---|---|---|---|
|
Description | Randomly generates a String with a specified length. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Syntax |
| ||||||||
Parameters | Html bobswift |
| |||||||
Example |
|
Anchor | ||||
---|---|---|---|---|
|
...
Description | Returns the index within the string value of the first occurrence of the specified substring, | |
---|---|---|
Syntax |
| |
Parameters | Html bobswift |
|
Anchor | ||||
---|---|---|---|---|
|
Description | Returns the index within the string variable of the first occurrence of the specified substring, | |
---|---|---|
Syntax |
| |
Parameters | Html bobswift |
|
Anchor | ||||
---|---|---|---|---|
|
Description | Returns the index within this string of the first occurrence of the specified substring plus the specified offset. The integer returned is the smallest value. | |
---|---|---|
Syntax |
| |
Parameters | Html bobswift |
|
Anchor | ||||
---|---|---|---|---|
|
Description | Returns the index within this string of the first occurrence of the specified substring plus the specified offset. The integer returned is the smallest variable. | |
---|---|---|
Syntax |
| |
Parameters | Html bobswift |
|
Anchor | ||||
---|---|---|---|---|
|
Description | Returns the index within the string value of the rightmost occurrence of the specified substring, | |
---|---|---|
Syntax |
| |
Parameters | Html bobswift |
|
Anchor | ||||
---|---|---|---|---|
|
Description | Returns the index within the string variable of the rightmost occurrence of the specified substring, | |
---|---|---|
Syntax |
| |
Parameters | Html bobswift |
|
Anchor | ||||
---|---|---|---|---|
|
Description | Returns the index within this string of the rightmost occurrence of the specified substring, plus the specified offset. The returned index is the largest value. | |
---|---|---|
Syntax |
| |
Parameters | Html bobswift |
|
Anchor | ||||
---|---|---|---|---|
|
Description | Returns the index within this string of the rightmost occurrence of the specified substring, plus the specified offset. The returned index is the largest variable. | |
---|---|---|
Syntax |
| |
Parameters | Html bobswift |
|
Anchor | ||||
---|---|---|---|---|
|
...
Description | Returns the length of | ||
---|---|---|---|
Syntax |
| ||
Parameters | |||
Html bobswift | Parameters |
|
Anchor | ||||
---|---|---|---|---|
|
Description | Returns a new string that is a substring of | |||
---|---|---|---|---|
Syntax |
| |||
Parameters | Html bobswift |
| ||
Example |
|
Anchor | ||||
---|---|---|---|---|
|
Description | Returns a new string that is a substring of | |||
---|---|---|---|---|
Syntax |
| |||
Parameters | Html bobswift |
| ||
Examples | If the value of the
|
Anchor | ||||
---|---|---|---|---|
|
...
Description | Displays all the defined and built-in variables associated with the task instance. | |||
---|---|---|---|---|
Syntax |
| |||
Parameters | (none) | |||
Example |
|
Generate Random Number
Description | Generates a random number between |
---|---|
Syntax |
|
Parameters |
|
...
Description | Resolves to the IP address of the machine running the Controller. |
---|---|
Syntax |
|
Parameters | (none) |
Resolve to the Sibling SYS_ID
Description | Resolves to the sys_id of the first task instance found within the same workflow specified by the sibling name. | |||
---|---|---|---|---|
Syntax |
| |||
Parameters |
| |||
Example |
|
Resolve to Variable Value
...
Description | Given the variable name representing the Array field, generate a String of delimited Array field entry data.
| |||
---|---|---|---|---|
Syntax |
| |||
Parameters |
| |||
Example |
|
Get Array Field Variable Value
Description | Given the variable name representing the Array field and the name of an entry in the Array field, return the value for the entry. | |||
---|---|---|---|---|
Syntax |
| |||
Parameters |
| |||
Example |
|
Anchor | ||||
---|---|---|---|---|
|
...
Description | Resolves to the XML output data of the Web Service task instance that is resolving the function, corresponding to the evaluated xPath expression.
| |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Syntax |
| |||||||||
Parameters |
| |||||||||
Examples | If you want to obtain the
Select the info node in the document no matter where it is.
Select the info node from a specific path in the document, starting from the root node. |
...
Description | Resolves to the JSON output data of the Web Service task instance that is resolving the function, corresponding to the evaluated JsonPath expression.
|
---|---|
Syntax |
|
Parameters |
|
...
Description | Resolves to the JSON output data of the Web Service task instance specified by the siblingName, corresponding to the evaluated JsonPath expression.
|
---|---|
Syntax |
|
Parameters |
|
...
Description | Resolves to the JSON output data of the Web Service task instance that is resolving the function, corresponding to the evaluated JsonPath expression.
|
---|---|
Syntax |
|
Parameters |
|
...
Description | Resolves to the JSON output data of the Web Service task instance specified by the siblingName, corresponding to the evaluated JsonPath expression.
|
---|---|
Syntax |
|
Parameters |
|
...