Use expressions to define values for the input fields of the Application Integration process that you selected for the service task, and to configure the outcomes of outgoing connections.
You can use the following types of expressions:
•Boolean
•List
•Numeric
•Lookup
•String
Boolean
Use Boolean expressions to determine whether a condition is met.
A Boolean expression can have one of following output values:
•true. Indicates that the condition is met.
•false. Indicates that the condition isn't met.
Compare two values
Use equality, inequality, and other relational conditions to compare two values.
The following table lists the operators that you can use to compare two values:
Name
Operator
Supported Value Types
Example
Equal to
=
Note:
If the canvas interface is translated to a language other than English, use
==
.
Any value
Consider the following conditions:
Compare numeric values
service_task_2.output.score.creditScore = 5
If the value of the service_task_2.output.score.creditScore expression is 5, the result of the condition is true.
Compare a value with a null value
service_task_2.output.score.bureau = null
If the value of the service_task_2.output.score.bureau expression is not null, the result of the condition is false.
Compare null values
null = null
The result of the expression is true.
Not equal to
!=
Any value
Consider the following conditions:
Compare numeric values
service_task_2.output.score.creditScore != 5
If the value of the service_task_2.output.score.bureau expression is 5, the result of the condition is false.
Compare a value with a null value
service_task_2.output.score.bureau != null
If the value of the service_task_2.output.score.bureau expression is not null, the result of the condition is true.
Compare null values
null != null
The result of the expression is false.
Less than
<
Numeric. Enter a numeric value that can be an integer or a decimal.
Consider the following condition:
service_task_2.output.score.creditScore < 6
If the value of the service_task_2.output.score.creditScore expression is less than 6, the result of the condition is true.
Less than or equal to
<=
Numeric. Enter a numeric value that can be an integer or a decimal.
Consider the following condition:
service_task_2.output.score.creditScore <= 11
If the value of the service_task_2.output.score.creditScore expression is less than or equal to 11, the result of the condition is true.
Greater than
>
Numeric. Enter a numeric value that can be an integer or a decimal.
Consider the following condition:
service_task_2.output.score.creditScore > 7
If the value of the service_task_2.output.score.creditScore expression isn't greater than 7, the result of the condition is false.
Greater than or equal to
>=
Numeric. Enter a whole or decimal number.
Consider the following condition:
service_task_2.output.score.creditScore >= 20
If the value of the service_task_2.output.score.creditScore expression is greater than or equal to 20, the result of the condition is true.
Ensure that the you compare values of the same type.
List
Use List expressions to manage a list of values. You can create a list, add values to a list, and also combine multiple lists.
Create a list
To create a list of values, use the following format:
[value1,value2,value3]
For example, to create a list of numeric values, use the following expression: