Versions Compared

Key

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

...

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','updateTransportOption("timer1.transport","PERIOD",toString(point))']]
            },
            filter
          )
  • reactOnPunctuations: Contains a list of punctuations where and expression for which a reaction should be forced
  • SUPPRESSPUNCTUATIONREACTEDON: if set to true (default is false) the "used" punctuation will not be resend by the operator

...