Skip to content

Commit

Permalink
Fix greeting after removal of jsonpath expressionlang
Browse files Browse the repository at this point in the history
Signed-off-by: gabriel-farache <[email protected]>
  • Loading branch information
gabriel-farache committed Oct 23, 2024
1 parent fe18569 commit c99cf1b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions greeting/greeting.sw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ states:
- name: ChooseOnLanguage
type: switch
dataConditions:
- condition: "${$.[?(@.language == 'English')]}"
- condition: .language == "English"
transition: GreetInEnglish
- condition: "${$.[?(@.language == 'Spanish')]}"
- condition: .language == "Spanish"
transition: GreetInSpanish
defaultCondition:
transition: GreetInEnglish
- name: GreetInEnglish
type: inject
data:
greeting: 'Hello from YAML Workflow, '
greeting: 'Hello from YAML Workflow'
transition: GreetPerson
- name: GreetInSpanish
type: inject
data:
greeting: 'Saludos desde YAML Workflow, '
greeting: 'Saludos desde YAML Workflow'
transition: GreetPerson
- name: GreetPerson
type: operation
Expand All @@ -38,6 +38,6 @@ states:
functionRef:
refName: greetFunction
arguments:
message: "$.greeting $.name"
message: .greeting
end:
terminate: true

0 comments on commit c99cf1b

Please sign in to comment.