Business Rules 10.11 | webMethods Business Rules Web Help | webMethods Rules Development Help | Working with Event Rules | Modifying an Event Rule Result | About Data Type Assignment
 
About Data Type Assignment
The following table lists the data types that can be assigned to a parameter element that was specified for an assignment result:
Data type of the parameter element for the result is
Literal value must be
Data type of assigned parameter element must be
Data type of action output must be
Constant must be
Data type of expression output must be
Boolean
Boolean
Boolean
Boolean
NULL
Boolean
Boolean list
n/a
Boolean list
Boolean list
NULL
Boolean list
Byte
Same data type or numeric data type with a smaller value.
Any numeric data type. Numeric data types with a greater value are truncated.
Any numeric data type. Numeric data types with a greater value are truncated.
NULL
not supported
Byte array
n/a
Byte array
Byte array
NULL
not supported
Byte list
n/a
Byte list, Character list
Byte list, Character list
NULL
not supported
Character
Character
Character
Character
NULL
not supported
Character list
n/a
Character list, Byte list
Character list, Byte list
NULL
not supported
Date
Date
Date
Date
NULL
Date
Date list
n/a
Date list
Date list
NULL
Date list
Document
n/a
Document
Document
NULL
Document
Document list
n/a
Document list
Document list
NULL
Document list
Numeric
(Byte, Double, Float,
Integer, Long,
Short)
Same data type or numeric data type with a smaller value.
Any numeric data type. Numeric data types with a greater value are truncated.
Any numeric data type. Numeric data types with a greater value are truncated.
NULL
Any numeric data type. Numeric data types with a greater value are truncated.
Numeric list
(Double list, Float list,
Integer list, Long list,
Short list)
n/a
Any numeric list. Numeric data types with a greater value are truncated.
Any numeric list. Numeric data types with a greater value are truncated.
NULL
Any numeric list. Numeric data types with a greater value are truncated.
Document list
n/a
Document list
Document list
NULL
Document list
String
String
String
String
NULL or EMPTY_ STRING
String
String list
n/a
String list
String list
NULL
String list
String table
n/a
String table
String table
NULL
String table
Important:
Integer values are converted to Java doubles before being assigned to parameter elements. The conversion might introduce imprecision due to truncation or rounding. As the conversion to a Java double only handles up to 15 significant digits, it is highly recommended not to use integers with more than 15 digits in conjunction with decimal point parameter elements.