Skip to content

Instantly share code, notes, and snippets.

@tsurdilo
Created July 14, 2020 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsurdilo/3a89dc2fcc5294fba5cae8ad6cf7b8f6 to your computer and use it in GitHub Desktop.
Save tsurdilo/3a89dc2fcc5294fba5cae8ad6cf7b8f6 to your computer and use it in GitHub Desktop.
{
"id": "VetAppointmentWorkflow",
"description": "Vet service call via events",
"version": "1.0",
"events": [
{
"name": "MakeVetAppointment",
"source": "VetServiceSoure",
"kind": "produced"
},
{
"name": "VetAppointmentInfo",
"source": "VetServiceSource",
"kind": "consumed"
}
],
"states": [
{
"name": "MakeVetAppointmentState",
"type": "operation",
"start": {
"kind": "default"
},
"actions": [
{
"name": "MakeAppointmentAction",
"eventRef": {
"triggerEventRef": "MakeVetAppointment",
"data": "$.patientInfo",
"resultEventRef": "VetAppointmentInfo"
},
"actionDataFilter": {
"dataResultsPath": "$.appointmentInfo"
},
"timeout": "PT15M"
}
],
"end": {
"kind": "default"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment