Closed mumubin closed 3 months ago
@mumubin Can you try naming your action and see if that works?
We are working in SW to make name or id required for every single component, and I took the initiative to already enforce it on Synapse
Thanks @cdavernas . After adding action name, it works. However, the YAML file I tested came from https://github.com/serverlessworkflow/specification/blob/main/examples/README.md#workflow-definition-1. It seems a bug in the examples. Let me submit a pr to fix it.
Fixed SW yaml.
{
"id": "greeting",
"name": "Greeting Workflow",
"description": "Greet Someone",
"version": "1.0.8",
"specVersion": "0.8",
"functions": [
{
"name": "greetingFunction",
"operation": "https://gist.githubusercontent.com/mumubin/7d6ede1791ddd6fb705576187f91c930/raw/5357026c05ddb641de52b27d5e922856be1243e3/greeting.yaml#randomGreeting",
"type": "rest"
}
],
"start": "Greet",
"states": [
{
"name": "Greet",
"type": "operation",
"actions": [
{
"name": "GreetingAction",
"actionDataFilter": {
"results": "${ {greeting: .greeting} }"
},
"functionRef": {
"refName": "greetingFunction",
"arguments": {
"name": "${ .person.name }"
}
}
}
],
"end": true
}
]
}
I am new to serverless workflow, I want to test it's example in synapse. Here is my test example workflow.
here is my input data
But I got the error output
This is the log