quickstarts/tutorials/workflow/java/combined-patterns/order-workflow

24 lines
527 B
Plaintext

@apphost=http://localhost:8080
### Start the OrderWorkflow workflow
# @name startWorkflowRequest
@orderId={{$guid}}
POST {{ apphost }}/start
Content-Type: application/json
{
"id": "{{orderId}}",
"orderItem" : {
"productId": "RBD001",
"productName": "Rubber Duck",
"quantity": 10,
"totalPrice": 15.00
},
"customerInfo" : {
"id" : "Customer1",
"country" : "The Netherlands"
}
}
### Get the workflow output
GET {{ apphost }}/output?instanceId={{ instanceId }}