Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Remark: To react on this requests, the transport handler needs to implement the optionsMapChanged(String key, String value) method. It is typically so, that the handler will not allow to change any value.

You could also use punctuations to force a command execution:

Code Block
#PARSER PQL
#ADDQUERY
timer = TIMER({
            id = 'timer1',
            period = 1000,
            starttime = 0 ,
            source = 'source'
          }
        )

filter = SELECT({
              predicate = 'time % 2 == 0',
              heartbeatrate = 1
            },
            timer
          )

command = COMMAND({
              commandexpression = 'updateTransportOption("timer1.transport","PERIOD",toString((counter()+1)*1000))',
              SUPPRESSPUNCTUATIONREACTEDON = true,
              reactOnPunctuations = ['Heartbeat']
            },
            filter
          )
  • reactOnPunctuations: Contains a list of punctuations where a reaction should be forced
  • SUPPRESSPUNCTUATIONREACTEDON: if set to true (default is false) the "used" punctuation will not be resend by the operator