SoftwareAG / apama-analytics-builder-block-sdk

Apama Analytics Builder Block SDK
Apache License 2.0
9 stars 5 forks source link

Test framework should support setting the initial correlator time #8

Open haraldmeyer opened 1 year ago

haraldmeyer commented 1 year ago

AnalyticsBuilderBaseTest has a function timestamp() to set the current correlator time. Using this to set the initial time does not work well if model execution time should be an actual date. Calling self.timestamp(1693388803.554) (which will create a pseudo timestamp event &TIME) will take a very long time as the model needs to process through all the time since time 0.

Apama supports explicitly setting the time with an event like this: f'&SETTIME({1693388803.000})'

It would be good if the test framework either had a separate function to create a $SETTIME event or if startAnalyticsBuilderCorrelator() had an optional parameter to set the initial time.

gys-c8y commented 11 months ago

I have logged an internal ticket to track and fix it.

skom-c8y commented 4 months ago

the internal issue id is PAB-4241