Skip to content

Enhance Set Task to Support Direct Runtime Expressions #1087

@nyamathshaik

Description

@nyamathshaik

What would you like to be added?

The set task currently only supports objects for setting values. This issue proposes an enhancement to allow set to also accept direct runtime expressions.

Proposal(s)

  • Modify the set task Type to support both object and string.
  • Update the Description to clarify that set can be an object or a direct runtime expression.
  • Add a new Example demonstrating a direct runtime expression.
document:
  dsl: '1.0.0'
  namespace: test
  name: set
  version: '0.1.0'
schedule:
  on:
    one:
      with:
        type: io.serverlessworkflow.samples.events.trigger.v1
do: 
  - set:
      set: ${ $workflow.input[0] }

Alternative(s):

No response

Additional info:

No response

Community Notes

  • Please vote by adding a 👍 reaction to the feature to help us prioritize.
  • If you are interested to work on this feature, please leave a comment.

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions