Created
July 14, 2020 06:24
-
-
Save tsurdilo/3a89dc2fcc5294fba5cae8ad6cf7b8f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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