Skip to content

Commit 3829876

Browse files
authored
Merge branch 'main' into feat-container-lifetime
2 parents fd241d8 + 8eebe90 commit 3829876

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

dsl-reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ Allows workflows to publish events to event brokers or messaging systems, facili
532532
| Name | Type | Required | Description |
533533
|:--|:---:|:---:|:---|
534534
| emit.event | [`eventProperties`](#event-properties) | `yes` | Defines the event to emit. |
535+
| emit.cc | [`endpoint`](#endpoint) | `no` | Specifies an additional endpoint for emitting a carbon copy of the event. While the runtime's default cloud event endpoint remains the primary destination, setting this property ensures that the event is also published to the specified endpoint. Ideally, this property is left unset so that event delivery relies solely on the runtime's configured endpoint, but when provided, the event will be sent to both endpoints concurrently. |
535536

536537
##### Examples
537538

examples/emit-cc.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
document:
2+
dsl: '1.0.0-alpha5'
3+
namespace: test
4+
name: emit
5+
version: '0.1.0'
6+
do:
7+
- emitEvent:
8+
emit:
9+
event:
10+
with:
11+
source: https://petstore.com
12+
type: com.petstore.order.placed.v1
13+
data:
14+
client:
15+
firstName: Cruella
16+
lastName: de Vil
17+
items:
18+
- breed: dalmatian
19+
quantity: 101
20+
cc: https://additional-cloud-event-sink.com/pub

schema/workflow.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,10 @@ $defs:
491491
description: Defines the properties of event to emit.
492492
required: [ source, type ]
493493
additionalProperties: true
494+
cc:
495+
$ref: '#/$defs/endpoint'
496+
title: EmitCarbonCopyDefinition
497+
description: Defines an additional endpoint, if any, to publish an event's carbon copy to.
494498
required: [ event ]
495499
forTask:
496500
type: object

0 commit comments

Comments
 (0)