Skip to content

Enhance Set Task to Support Direct Runtime Expressions #1087

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nyamathshaik opened this issue Mar 9, 2025 · 0 comments · Fixed by #1086
Closed

Enhance Set Task to Support Direct Runtime Expressions #1087

nyamathshaik opened this issue Mar 9, 2025 · 0 comments · Fixed by #1086
Assignees
Labels
area: examples change: documentation Improvements or additions to documentation. It won't impact a version change. change: feature New feature or request. Impacts in a minor version change spec: 1.0.0 type: feature
Milestone

Comments

@nyamathshaik
Copy link
Contributor

nyamathshaik commented Mar 9, 2025

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.
@cdavernas cdavernas added this to the v1.1.0 milestone Mar 9, 2025
@cdavernas cdavernas linked a pull request Mar 9, 2025 that will close this issue
8 tasks
@cdavernas cdavernas added change: documentation Improvements or additions to documentation. It won't impact a version change. change: feature New feature or request. Impacts in a minor version change spec: 1.0.0 area: examples labels Mar 9, 2025
@github-project-automation github-project-automation bot moved this from Backlog to Done in Progress Tracker Mar 19, 2025
fjtirado added a commit to serverlessworkflow/sdk-java that referenced this issue Apr 29, 2025
fjtirado added a commit to serverlessworkflow/sdk-java that referenced this issue Apr 29, 2025
ricardozanini pushed a commit to serverlessworkflow/sdk-java that referenced this issue Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: examples change: documentation Improvements or additions to documentation. It won't impact a version change. change: feature New feature or request. Impacts in a minor version change spec: 1.0.0 type: feature
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants