In the resources directory you can find the Kubernetes Custom Resources (CR) that you need in order to deploy this workflow on your cluster in dev mode.
To do this you only need to apply these resources using the following commands:
kubectl create namespace my-workflows kubectl apply -f ./resources/ -n my-workflows
Open a new terminal and start the flow with the following command:
#!/bin/sh ADDRESS=$(kubectl get workflow -n my-workflows -o custom-columns="URL":.status.address.url --no-headers) curl -X POST $ADDRESS \ -H 'Content-Type:application/json' -H 'Accept:application/json' \ -d '{ "orderId": "order-123" }'
You should get back the output which resembles the following:
{"id":"7484e05f-3b95-4ac7-8c09-a2c717a0293e","workflowdata":{"orderId":"order-123"}}
In the other terminal where the workflow is running you can spot the following message in the log:
Order received: order-123
CONGRATULATION!!! Your first workflow was executed as expected!