Not correct variable processing [message #1767758] |
Mon, 10 July 2017 13:55  |
Eclipse User |
|
|
|
I found some behavior that seems not to be correct, but may it could be fault
on my side. Check, please.
I created two user modules based on the standard module <ub_app_storeValue>.
The first one is a simple wrapper and I call it <StoreValue>. This module accepts
the same parameters as original standard module.
The second module is also a wrapper and it accepts also two parameters as the first one, but I wanted it to accept only integer value. From this reason I opened the Edit parameters dialog and configured the second parameter type to Integer.[Evidence1.png]. I call the module <StoreInteger>.
The configuration works fine if I try to enter/konfigure the value manually in Properties [Evidence2.png, Evidence3.png].
If I use a variable as a value, I expected, that in case that variable contains string,
the Configuration error will be fired due to check of the value. Anyhow the test passes. As you can see on the evidence4.png, in the <StoreValue> is stored string Hello to the variable Temp. In the <StoreInteger> is stored the value of variable
$Temp, i.e. string Hello', to the second parameter of <StoreInteger> , that is configured as Integer.
Finally is the value of the variable $Number put in the clipboard.
|
|
|
|
|
Re: Not correct variable processing [message #1768296 is a reply to message #1768001] |
Mon, 17 July 2017 03:46  |
Eclipse User |
|
|
|
Thanks for the information, now I understood the problem.
In fact variables (Types) are not checked at execution Time. This is a known problem and something which is a design decision(Which i think will not change in the future).
There is no easy way to check the type of a saved variable. Since it is a matter of the execution. The only thing which could be done afterwards is to check with checkNumericValues. So you are failing earlier.
with regards
Marvin Mueller
with regards
Marvin Mueller
|
|
|
Powered by
FUDForum. Page generated in 0.02587 seconds