serverlessworkflow / specification

Contains the official specification for the Serverless Workflow Domain Specific Language. It provides detailed guidelines and standards for defining, executing, and managing workflows in serverless environments, ensuring consistency and interoperability across implementations.
http://serverlessworkflow.io
Apache License 2.0
745 stars 147 forks source link

Allow accesing current date and time in expressions. #970

Closed fjtirado closed 3 months ago

fjtirado commented 3 months ago

What would you like to be added:

Now that we have a runtime object, it would be great if users can access current date in expressions

Therefore, I propose to add $runtime.now.iso8601, $runtime.now.epochMillis and $runtime.now.epochNanos

Why is this needed:

JBBianchi commented 3 months ago

Just out of curiosity, how would it differ from now in jq our new Date() in js ?

fjtirado commented 3 months ago

In nothing, I did not know now exist in in JQ