Created
July 14, 2020 05:11
-
-
Save tsurdilo/c94aca4d2c912fd5ddd6d25a691ca129 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", | |
"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