0% found this document useful (0 votes)
65 views4 pages

Commonly Used OOTB Functions

The document describes various date, string, and advanced functions in ProcessMaker: 1. Date functions like CurrentDateTime() return the current date and time, AddCalender() adds years, months, etc to a date, and AddToDate() adds days, hours to a date. 2. String functions include toUpperCase() to convert to uppercase, toLowerCase() to lowercase, and contains() to check if a string contains another. 3. Advanced functions involve checking for property values, executing activities, and working with page lists like getting indexes, counts, and checking for values using isInPageList().

Uploaded by

lavanya kalagara
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
65 views4 pages

Commonly Used OOTB Functions

The document describes various date, string, and advanced functions in ProcessMaker: 1. Date functions like CurrentDateTime() return the current date and time, AddCalender() adds years, months, etc to a date, and AddToDate() adds days, hours to a date. 2. String functions include toUpperCase() to convert to uppercase, toLowerCase() to lowercase, and contains() to check if a string contains another. 3. Advanced functions involve checking for property values, executing activities, and working with page lists like getting indexes, counts, and checking for values using isInPageList().

Uploaded by

lavanya kalagara
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 4

Date Functions :

CurrentDateTime(): Useful to get current Date and time in 'yyyyMMddTHHmmss.SSS


GMT' format, where zzz is defaulted to GMT timezone

Example : CurrentDateTime() - 20200427T132137.681 GMT

AddCalender() : useful to add the given years, months, weeks, days, hours, minutes,
and seconds to the DateTime passed in (or the current DateTime if no DateTime is
passed) and returns the resulting DateTime as a String.

Example : addCalender(@CurrentDateTime(), "1","2",,,"1", "1", "1", "1") =


"20100110T172605.370 GMT"

AddToDate() : Adds the given days, hours, minutes, and seconds to the DateTime
passed in (or the current DateTime if no DateTime is passed) and returns the resulting
DateTime as a String.

Example : addToDate("20090109T162504.370 GMT", "1", "1", "1", "1") =


"20090110T172605.370 GMT"

DateTimeDifference() : Returns the time difference, as a double, between two


DateTime strings according to the the specified precision.

Example : DateTimeDifference("20090109T160000.000 GMT", "20090109T162504.370


GMT", "s") = 1504.0

FormatDateTime() : Format/Reformat a DateTime string using the specified


parameters
FormatDateTime("20090109T162504.370 GMT", "dd-MM-yyyy", "America/New_York",
"en_US") = "20090109"
FormatDateTime(CurrentDateTime(), "HH:mm","IST",) = 07:59
String Functions :

toUpperCase(): Converts letters to Upper Case


@toUpperCase("damodar") - DAMODAR

toLowerCase() : Converts letters to Lower Case


@toLowerCase("DAMODAR") - damodar

toInt() : Converts String/text to Integer


@toInt("010") - 10

contains() - Useful to compare two srings. returns true if str1 contains str2. returns false
if either string is null
@contains("PRPC 7.2" ,"7.2") = true

startsWith - Useful to compare two srings. returns true if str1 starts with str2.

endsWith - Useful to compare two srings. returns true if str1 ends with str2.

equals - Useful to compare two srings. returns true if str1 equals to str2

equalsIgnoreCase - Ignores case while comparing


@equalsIgnoreCase("PRPC 7.2" ,"prpc 7.2") = true

notEquals - returns true if str1 not equals to str2

pxContainsViaRegex() : Checks that the input "contains" the regular expression via
either the find() or matches() method.
find() = Attempts to match any PART of the input sequence against the pattern
matches() = Attempts to match the ENTIRE input sequence against the pattern
pxContainsViaRegex("lskdlskdld87",[a-zA-Z0-9])
pxContainsViaRegex("lskdlskdld87",[(0-2)a-zA-Z0-9])

whatComesBeforeLast
whatComesAfterLast
WhatComesBeforeFirst
whatComesAfterFirst

whatcomesAfterLast("slslks-slkdlksd*lskdsl",'*') C/2/9898 XYZ Street, Nallajerla - 23232

Param.A = C-20220520-293293
Param B = @whatComesBeforeLast(Param.A,’-‘)  C-20220520
BC-92392392-92392932
Str1 = whatcomesBeforeLast("C-9898-293293",'-')

Advanced Functions :

propertyHasValue(.Age) .Age==””

propertyExists(.Age)

PropertyHasErrors

CallActivity("StepPage","MyActivity")
pxExecuteAnActivity(“Primary”, “StepPage”,”ActivityName”)

lengthOfPageList(StateList.pxResults)

isInPageList(Param.StateToSearch,"StateName",StateList.pxResults)

Param.SearchTo="StateName"
isInPageList("Tamilnadu", Param.SearchTo, StateList.pxResults)

CountryList.pxResults
For a page, which as “CountryCode” as “IND”

Param.SearchProperty = “CountryCode”
IsInPageList(“IND”,Param.SearchProperty, CountryList.pxResults) == true/false

CountryCode = IND
CityCode = HYD

isInPageListWhen(WhenRule, StateList.pxResults)

State Name StateCode Capital


AndhraPradesh AP Amaravathi
Telangana TG Hyderabad
Maharastra MH Mumbai
Banga WB Kolkata

Param.Index = @IndexInPageList(“Telangana”,”StateName”,StateList.pxResults)
Capital = StateList.pxResults(Param.Index).Capital
IndexInPageList(“KR”,”StateCode”,StateList.pxResults)  Param.Index
If Param.Index!=-1
Param.Capital = StateList.pxResults(Param.Index).Capital

indexInPageList(Param.StateToSearch,"StateName",StateList.pxResults)
-1 returned if string not found in the list

indexInPageListWhen

countInPageList("IND","CountryCode",StateList.pxResults)

countInPageListWhen

You might also like