Plumb Operations


CamlinConnect provides a means to take decisions in your MVR call flow using 'Plumbs' . Currently in CamlinConnect, Plumbs works on two variables to allow you take decisions or do some manipulations. Here are the details of currently supported plumb operations 


Plumb Name
Description
Additional Info
equal ToTo check whether two variables are equal to each other

Can compare two different type of variables as long as comparison is logical. An example of illogical comparison is date to number

greater ThanTo check whether first variable is greater than second variable


less ThanTo check whether first variable is smaller than second variable

Can compare two different type of variables as long as comparison is logical. An example of illogical comparison is date to number

setTo set the value of first variable using the value of second variable

Can set a variable value from other variable value. The type of variables should be logical for setting the value.

minusTo subtract right variable variable value from left value and assigning the result back to left variable.Can also be used with Date types. When using dates manipulation, the increment variable value should contain the increment value digit followed by the increment unit such as seconds/minutes/hours/days/weeks/months/years. The unit value should contain at least three characters of unit. Here are some examples of date increment values : 2Hours, 3mins, 4DAYS, 5Weeks, etc
multiplyTo multiply right variable variable value from left value and assigning the result back to left variable.
divideTo divide right variable variable value from left value and assigning the result back to left variable.
incrementTo add right variable variable value from left value and assigning the result back to left variable.Can also be used with Date types. When using dates manipulation, the increment variable value should contain the increment value digit followed by the increment unit such as seconds/minutes/hours/days/weeks/months/years. The unit value should contain at least three characters of unit. Here are some examples of date increment values : 2Hours, 3mins, 4DAYS, 5Weeks, etc
containsTo check whether right variable value is contained in left variable value
format dateTo format the left variable date text using the right variable date format text, and assign the result back to left variable.Lot of different input date formats can be identified and formatted to any logically correct date format. Date formats should follow java date format specs as mentioned here : https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
length less thanTo check whether the length of left variable is less than length of right variableAny variable with value as null is considered to be of length 0
length equal toTo check whether the length of left variable is equal to the length of right variableAny variable with value as null is considered to be of length 0
format DecimalTo format left variable value using a number formatter.Use case is to display 88.5 as 88.50. For number formats reference, follow java decimal formats as mentioned here: https://docs.oracle.com/javase/7/docs/api/java/text/DecimalFormat.html

parse from json

To parse left variable jsonpath value form right variable jsonLeft and right variable can be of any type as long as they make sense from json parsing perspective. Left and right variable can be but not limited to these types : TEXT, JSON, JSONPATH
concatTo concatenate left variable with right variable valueCan concatenate variables of any type except when both the variable of type numbers. The reason for not supporting numbers is that two numbers can contain decimals and final concatenated number will be an invalid number with two decimals.
matchesTo match left variable with right variable values(regex)Follows the designated plumb pipe when the left variable matches to the right variable containing a regex