You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMPORTANT: The *custom event header*`orderid` matches the `contextAttributeName` used in the event definition for correlation. In other words, `orderid` is the hook to the workflow instance, you can run multiple workflow instances in parallel, but they must wait for a distinct `orderid`.
159
+
IMPORTANT: The CloudEvent is sent via the HTTP protocol, and by convention the CloudEvent attributes are sent as an HTTP header with a `ce-` prefix.
160
+
The *CloudEvent attribute*`orderid` matches the `contextAttributeName` used in the event definition for correlation. In other words, `orderid` is the hook to the workflow instance, you can run multiple workflow instances in parallel, but they must wait for a distinct `orderid`.
161
161
162
162
Open the *_Workflow Details_* page to inspect the instance status: you should see the the workflow instance still active, waiting for the shipping event:
Repeat the previous step to start a second workflow instance with `orderid = 1003`.
152
+
Repeat the previous step to start a second workflow instance with `ce-orderid = 1003`.
153
153
154
154
Inject other two CloudEvents:
155
155
156
156
. First event will test the happy path:
157
157
158
158
- *Event Type* : `ShippingEventType`
159
159
160
-
- *Event Custom Headers* : `orderid = 1002`
160
+
- *Event Custom Headers* : `ce-orderid = 1002`
161
161
162
162
. Second event will test the cancellation path:
163
163
164
164
- *Event Type* : `CancelEventType`
165
165
166
-
- *Event Custom Headers* : `orderid = 1003`
166
+
- *Event Custom Headers* : `ce-orderid = 1003`
167
167
168
168
NOTE: Even if you trigger the compensation no compensation activity is defined, so at this stage of the exercise you can only look for the `Compensate Order` string in the logs.
0 commit comments