Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: Java System.currentTimeMillis() in ExpressionEvaluator
Reply to topic
Author Message
EMebane



Joined: Apr 15, 2019
Posts: 86

PostPosted: May 9, 2020 2: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: 86

PostPosted: May 9, 2020 2: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: 789

PostPosted: May 9, 2020 3: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.
Reply to topic