Skip to main content
Administrator Guide
Last Updated: 2023-06-23
Reference: MVEL Methods

Reference: MVEL Methods

Method
Description
Sample Code
Sample Output
getClass().getName()
Retrieves the type of a property or variable.
props['p.myProperty']=true props['p.myProperty'].getClass().getName()
java.lang.Boolean
getEndpoint()
Retrieves the endpoint of a RaaS report when using a SOAP request.
@{intsys.reportService.getEndpoint('Report Alias')}
customreport2/<tenant_name>/<username>/report_name_in_XML_format
getExtrapath()
Retrieves the extra path of a RaaS report.
intsys.reportService.getExtrapath('<your workday-in Report Service Alias>')
customreport2/<tenant_name>/<username>/<Custom Report Name>
indexOf()
Retrieves the position of a specific character within an input string.
props['input.document.reference'] = 'FoundationDataCollection/4d196113' props['index.of.separator'] = props['input.document.reference'].indexOf("/")​
24
leftPad()
Adds characters to the beginning of an input string.
org.apache.commons.lang.StringUtils.leftPad('1234', 10,'0')
0000001234
listToCommaDelimString()
Converts a list of array values to a string and separates them with commas.
props[p.workers] = [1234, 7890] props['p.workers'] = lp.getWIDs('Pay Group Members') props['p.workers.ids'] = props['p.workers'] != empty ? util.listToCommaDelimString(props['p.workers'])
1234,7890
replaceAll()
Replaces all instances of specified characters within an input string.
props['p.employee.id'] = '12345pdf_a.pdf' props['p.current.id'] = props['p.employee.id'].replaceAll('[^0-9]','')
12345
substring()
Retrieves part of an input string.
props['p.test.string'] = 'test' props['p.test.substring'] = props['p.test.string'].substring(0,2)
te
toUpperCase()
Converts a string to uppercase.
props['p.test.string'] = 'workday Studio' props['p.test.string'].toUpperCase()
WORKDAY STUDIO
URLEncoder ()
Retrieves a string containing only valid URL characters.
props['p.report.parameters'] = 'Full_Name=' # 'Logan McNeil' props['REST.URL'] = java.net.URLEncoder.encode(props['p.report.parameters'], 'UTF-8')
Full_Name=Logan%20McNeil