https://github.com/dmarrazzo/order-swf
Order Management implemented with Serverless Workflow
https://github.com/dmarrazzo/order-swf
Last synced: 3 months ago
JSON representation
Order Management implemented with Serverless Workflow
- Host: GitHub
- URL: https://github.com/dmarrazzo/order-swf
- Owner: dmarrazzo
- Created: 2022-12-19T11:05:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-17T13:08:05.000Z (8 months ago)
- Last Synced: 2025-01-22T20:51:17.964Z (5 months ago)
- Language: Java
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OrderManagement with Serverless Workflow
## Workflow entry points
Launch the process:
```sh
curl -X POST -H 'Content-Type:application/json' -H 'Accept:application/json' -d '{ "workflowdata": { "orderId": "order-123"} }' http://localhost:8080/order
```Send a Cloud Event:
```sh
curl -X POST -H "Content-Type: application/json" -H "ce-specversion: 1.0" -H "ce-source: commerce" -H "ce-type: OrderEventType" -H "ce-id: f0643c68-609c-48aa-a820-5df423fa4fe0" -d '{"orderId": "order-123"}' http://localhost:8080
```