Author |
Message |
EMebane
Joined: Apr 15, 2019 Posts: 98
|
Posted: May 9, 2020 7:56 PM Post subject: Java System.currentTimeMillis() in ExpressionEvaluator |
|
What is the correct way to access something like System.currentTimeMillis() in an ExpressionEvaluator? I have tried to use it and I find that it only outputs a value once, not each time a new value is received by the Element. |
|
 |
EMebane
Joined: Apr 15, 2019 Posts: 98
|
Posted: May 9, 2020 7:57 PM Post subject: |
|
I see that I can use TimeSource and an additional input but I'd like to know about working with Java directlly like System.currentTimeMillis() from within ExpressionEvaluator. |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1056
|
Posted: May 9, 2020 8:44 PM Post subject: |
|
You should be able to get an output value for each input value (to at least one input), unless you use SkipOutput flag described in the manual (so don't). This is the fundament of EE, the expression is evaluated for each sample. |
|