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
740 stars 146 forks source link

Add support for expression objects #899

Closed cdavernas closed 3 months ago

cdavernas commented 3 months ago

What would you like to be added:

Provide support for using both object and string expressions for input.from, export.as and output.as.

Why is this needed:

Currently:

...
output: 
  as: '{ style: { shape: "circle", backgroundColor: .colors[0] } }'

Proposal:

...
output:
  as:
    shape: circle
    style:
      backgroundColor: ${ .colors[0] }
ricardozanini commented 3 months ago

+1000 are you working on it?

cdavernas commented 3 months ago

@ricardozanini I'll open a PR as soon as we get a consensus! It's actually already supported by https://github.com/serverlessworkflow/synapse/tree/1.0.0-alpha1.

ricardozanini commented 3 months ago

Just adding the assignee then to facilitate planning :P

cdavernas commented 3 months ago

@fjtirado @JBBianchi @matthias-pichler-warrify sounds good to you guys?

JBBianchi commented 3 months ago

Good call!

fjtirado commented 3 months ago

Sure, makes sense.

matthias-pichler commented 3 months ago

looks good 👍

cdavernas commented 3 months ago

Closed by #907