Skip to content
Discussion options

You must be logged in to vote

The input of the workflow, maybe transformed using the input directive.

Given the workflow

do:
  - sum:
      input:
        from: ${ .number}
      set: ${ . * 2 }
      export:
        as: 
          answer: ${ $output }
  - greet:
      input:
        from: ${ $workflow.input.greet }
      set: ${ "Hello " + . }
      output:
        as: ${ $context + { "greetings": $output } }

With the given workflow input:

{
  "number": 21,
  "greet": "Francisco"
}
step raw input transformed input raw output transformed output context
sum { "number": 21, "greet": "Francisco" } 21 42 42 { "answer": 42 }
greet 42 "Francisco" "Hello Francisco" { "answer": 42, "greetings": "Hello Francisco" } { …

Replies: 3 comments 9 replies

Comment options

fjtirado
Jun 6, 2024
Collaborator Author

You must be logged in to vote
5 replies
@JBBianchi
Comment options

@fjtirado
Comment options

fjtirado Jun 24, 2024
Collaborator Author

@JBBianchi
Comment options

@cdavernas
Comment options

@fjtirado
Comment options

fjtirado Jun 24, 2024
Collaborator Author

Comment options

You must be logged in to vote
2 replies
@cdavernas
Comment options

@fjtirado
Comment options

fjtirado Jun 24, 2024
Collaborator Author

Comment options

fjtirado
Jun 24, 2024
Collaborator Author

You must be logged in to vote
2 replies
@JBBianchi
Comment options

Answer selected by fjtirado
@fjtirado
Comment options

fjtirado Jun 24, 2024
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants