Apama 10.3.1 | Apama Documentation | Developing Apama Applications | Developing Apama Applications in Event Modeler | Using Event Modeler | Using the Variables tab | Conversion rules for variable types
 
Conversion rules for variable types
This table summarizes the conversion rules:
Number
Number (whole)
Text
Choice
Condition
Number
Copy the value
Copy the value and round it to the nearest integer value
Copy the value as a string.
Copy the value as a string.
false
Number (whole)
Copy the value
Copy the value
Copy the value as a string.
Copy the value as a string.
false
Text
Try to convert to a valid number up to the first non-numeric character, set to 0.0 if first character is not a number.
Try to convert to a valid number up to the first non-numeric character, set to 0 if first character is not a number.
Copy the value.
Copy the value.
If the value is true then set to true, else false. Case is ignored.
Choice
Try to convert to a valid number up to the first non-numeric character, set to 0.0 if first character is not a number.
Try to convert to a valid number up to the first non-numeric character, set to 0 if first character is not a number.
Copy the value.
Copy the value.
If the value is true then set to true, else false. Case is ignored.
Condition
1.0 for true 0 for false
1 for true 0 for false
Copy the value as a string.
Copy the value as a string.
Copy the value.
Examples
Text Source
Number Target
"information"
0 or 0.0
"-2.45"
-2.45
"456test"
456

Copyright © 2013-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.