BusinessEvents attempts to correct inconsistencies of type whenever possible by converting expressions to the appropriate type. BusinessEvents converts expression types in the following cases:There are some inconsistencies of type that BusinessEvents cannot correct. For example, all expressions within conditions must be of type boolean. If an expression within a condition evaluates to anything other than boolean, it would be illogical for BusinessEvents to convert the expression to boolean. In cases like this, BusinessEvents returns an error at compile time.When an expression uses the plus sign (+) with a string operand, BusinessEvents treats the expression as a request for concatenation rather than addition. It converts the second operand to a string and concatenates the two strings.* / % + - < <= > = == !=When an expression uses one of the above arithmetic operators with two numbers of different numeric types, BusinessEvents promotes one of the two operands to the numeric type of the other. It makes these promotions as follows:If the value of an expression is assigned to a variable, BusinessEvents converts the expression’s type to that of the variable. This might include, for example, converting a double to an int, or converting a generic model type to a more specific model type.
Copyright © TIBCO Software Inc. All Rights Reserved.