-
Feature Request
-
Resolution: Done
-
Major
-
1.34.0.Final
-
None
-
False
-
-
False
-
---
-
---
-
-
-
2023 Week 09-11 (from Feb 27), 2023 Week 12-14 (from Mar 20)
Users should be allowed to choose if they want to send the request data in a plain JSON object (default) or in a CloudEvent object.
The CloudEvents specification defines two ways of sending messages: "structured-mode" and "binary-mode".
https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md#message
When using CloudEvents, Kogito must validate if the function argument is a valid CE, use the "structured-mode" and set "Content-Type" as "application/cloudevents+json; charset=UTF-8".
When not using CloudEvents, Kogito must validate if the function argument is not a CE. Otherwise throw an error. (CE are not allowed when 'asCloudEvent' = false)
{
"id": "myworkflow",
"specVersion": "0.8",
"version": "1.0",
"start": "State1",
"functions": [
{
"name": "function1",
"type": "custom",
"operation": "knative:mynamespace/func1",
"metadata": {
"asCloudEvent": true,
"path": "/my_path"
}
],
"states": [
{
"name": "State1",
"type": "operation",
"actions": [
{
"functionRef": {
"refName": "function1",
"arguments": {
"specversion" : "1.0",
"type" : "com.github.pull_request.opened",
"source" : "https://github.com/cloudevents/spec/pull",
"subject" : "123",
"id" : "A234-1234-1234",
"time" : "2018-04-05T17:31:00Z",
"comexampleextension1" : "value",
"comexampleothervalue" : 5,
"datacontenttype" : "text/xml",
"data" : "<much wow=\"xml\"/>"
}
}
}
],
"end": true
}
]
}
- blocks
-
KOGITO-8766 [SW] Adjust the Knative Function definition to use the same interface as defined by the extension
-
- Resolved
-
- depends on
-
KOGITO-8410 [SW] Add support for GET method to Knative custom function
-
- Resolved
-
- is depended on by
-
KOGITO-8848 [SW] Allow users to send a custom CloudEvent ID in Knative custom functions
-
- Resolved
-
-
KOGITO-8449 [SW] Add support to Cloud Events to Kubernetes custom function
-
- Closed
-
- is related to
-
KOGITO-8770 [SPIKE] [SW] Reassess the Kubernetes/Knative discovery and internal catalog to keep them independent
-
- Resolved
-