This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
incomingvalue_and_server_values [2024/01/10 11:53] wikiadmin |
incomingvalue_and_server_values [2024/01/10 11:55] (current) wikiadmin [Other Built-in Variables] |
Besides "incomingValue", each script has access to the name of bean running the script (originatingBeanName) and the outport name (originatingOutportName). The outport name will be null in most cases. However it is useful to know the name of the bean running the script, especially when logging or using print() in your script. | Besides "incomingValue", each script has access to the name of bean running the script (originatingBeanName) and the outport name (originatingOutportName). The outport name will be null in most cases. However it is useful to know the name of the bean running the script, especially when logging or using print() in your script. |
| |
The class of originationgBeanName is DataSource. So you can use DataSource methods in the script with this bean. For example, to get the container name you can reference the name of the DataSource using the --> syntax, then use getContainer().getContainerName() to get the container name. The "container name" is the name of the MIStudio application in which this script is running. | The class of originatingBeanName is DataSource. So you can use DataSource methods in the script with this bean. For example, to get the container name you can reference the name of the DataSource using the "-->" syntax, then use getContainer().getContainerName() to get the container name. The "container name" is the name of the MIStudio application in which this script is running. |
| |
Here is a sample javascipt code which uses all of these variables: | Here is a sample javascipt code which uses all of these variables: |