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 To | To 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 Than | To check whether first variable is greater than second variable | |
less Than | To 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 |
set | To 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. |
minus | To 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 |
multiply | To multiply right variable variable value from left value and assigning the result back to left variable. | |
divide | To divide right variable variable value from left value and assigning the result back to left variable. | |
increment | To 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 |
contains | To check whether right variable value is contained in left variable value | |
format date | To 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 than | To check whether the length of left variable is less than length of right variable | Any variable with value as null is considered to be of length 0 |
length equal to | To check whether the length of left variable is equal to the length of right variable | Any variable with value as null is considered to be of length 0 |
format Decimal | To 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 json | Left 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 |
concat | To concatenate left variable with right variable value | Can 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. |
matches | To 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 |