Skip to content

Instantly share code, notes, and snippets.

@tsurdilo
Created July 14, 2020 05:11
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/c94aca4d2c912fd5ddd6d25a691ca129 to your computer and use it in GitHub Desktop.
Save tsurdilo/c94aca4d2c912fd5ddd6d25a691ca129 to your computer and use it in GitHub Desktop.
{
"id": "VetAppointmentWorkflow",
"description": "Vet service call via events",
"version": "1.0",
"functions": [
{
"name": "VetAppointmentService",
"triggerEventRef": "MakeVetAppointment",
"resultEventRef": "VetAppointmentInfo"
}
],
"events": [
{
"name": "MakeVetAppointment",
"source": "VetServiceSoure",
"kind": "produced"
},
{
"name": "VetAppointmentInfo",
"source": "VetServiceSource",
"kind": "consumed"
}
],
"states": [
{
"name": "MakeVetAppointmentState",
"type": "operation",
"start": {
"kind": "default"
},
"actions": [
{
"name": "MakeAppointmentAction",
"functionRef": {
"refName": "VetAppointmentService",
"parameters": {
"patient": "$.patientInfo"
}
},
"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