jensrossbach / node-red-contrib-chronos

Time-based Node-RED scheduling, repeating, queueing, routing, filtering and manipulating nodes
https://jensrossbach.github.io/node-red-contrib-chronos
MIT License
28 stars 1 forks source link

Delay node: Dynamic durations and until times from context variables #102

Closed jensrossbach closed 1 year ago

jensrossbach commented 1 year ago

Currently delay node can retrieve dynamic delay data (duration or until time) only from incoming messages. With this extension, delay node shall be able to load this delay data also from context variables (first message being queued triggers the load from context variables).

jensrossbach commented 1 year ago

To a certain extend, this is already possible. With custom delay type, one can use the JSONata functions $flowContext, $globalContext and $env for retrieving values from context or environment variables. This might be more complex than data similar to the message overrides and requires some knowledge of JSONata on one side, but it is quite flexible on the other side.

Therefore it has to be decided, if this feature is worth implementing.

jensrossbach commented 1 year ago

Will be implemented.

jensrossbach commented 1 year ago

Implemented with release 1.19.