Skip to content

Commit

Permalink
feat(events): Add Gate generated id in the event being sent to echo
Browse files Browse the repository at this point in the history
Set the Gate generated event id as the top level event id in the event being sent to Echo.
This conforms to Event.java as used by Echo to deserialize the event upon receipt.
This also prevents Echo from generating yet another UUID.
  • Loading branch information
dbyron-sf authored and kirangodishala committed Aug 30, 2024
1 parent 7373cfe commit c5fee72
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ class PipelineService {
parameters.put("eventId", eventId)
parameters.put("executionId", executionId)

// Note that the Gate generated UUID is used as the event id and set it at the top level of the Map.
// This conforms to Event.java as used by Echo to deserialize the event upon receipt.
// This also prevents Echo from generating yet another UUID.
Map eventMap = [
content: [
application : application,
Expand All @@ -106,7 +109,8 @@ class PipelineService {
],
details: [
type: "manual"
]
],
eventId: eventId
]
echoService.postEvent(eventMap)
return [
Expand Down

0 comments on commit c5fee72

Please sign in to comment.