-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Runtime Defined Entity Behaviors Part 1
This commit contains Behaviors general concepts, invocation. Signed-off-by: kirilkadoncheva <kiki.doncheva393@gmail.com>
- Loading branch information
1 parent
a2bce39
commit d3fb062
Showing
13 changed files
with
481 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
documentation/extensibility-platform/defined-entities/aws-lambda-behaviors.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# AWS Lambda Behaviors |
416 changes: 416 additions & 0 deletions
416
...mentation/extensibility-platform/defined-entities/behaviors-general-concepts.md
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
documentation/extensibility-platform/defined-entities/mqtt-behaviors.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# MQTT Behaviors | ||
|
60 changes: 60 additions & 0 deletions
60
documentation/extensibility-platform/defined-entities/no-op-behaviors.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# No-op Behaviors | ||
|
||
No-op behaviors, as the name suggests, are behaviors which do not perform any operation as part of their execution. They always succeed or always fail (depending on how they are configured). This type of behaviors can be used for testing purposes. | ||
|
||
## Behavior Definition | ||
The no-op behavior execution type is `noop`. By default no-op behavior execution always succeeds and returns a `null` result. However, a no-op behavior can be configured to return a custom result. Also no-op behaviors can be configured to always fail with custom error. | ||
|
||
#### Special execution properties | ||
There are some special properties which can be set in the behavior definition `execution_properties` section. | ||
- `returnValue` - any - this property is used to set a custom result value for the behavior. | ||
- `returnError` - Object - this property is used to set a custom error for the behavior: | ||
```json | ||
"returnError": { | ||
"majorErrorCode": 501, | ||
"minorErrorCode": "NOT_IMPLEMENTED", | ||
"message": "Not Implemented" | ||
} | ||
``` | ||
|
||
Default no-op behavior definition: | ||
```json | ||
{ | ||
"name": "testNoOp", | ||
"execution": { | ||
"type": "noop" | ||
} | ||
} | ||
``` | ||
|
||
No-op behavior definition returning custom result: | ||
|
||
```json | ||
{ | ||
"name": "testNoOpWithReturnArgument", | ||
"execution": { | ||
"type": "noop", | ||
"execution_properties": { | ||
"returnValue": "Successful Behavior Execution" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
No-op behavior definition for behavior failing with custom error: | ||
```json | ||
{ | ||
|
||
"name": "testNoOpError", | ||
"execution": { | ||
"type": "noop", | ||
"execution_properties": { | ||
"returnError": { | ||
"majorErrorCode": 501, | ||
"minorErrorCode": "NOT_IMPLEMENTED", | ||
"message": "Not Implemented" | ||
} | ||
} | ||
} | ||
} | ||
``` |
1 change: 1 addition & 0 deletions
1
documentation/extensibility-platform/defined-entities/vro-behaviors.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# VRO Behaviors |
1 change: 1 addition & 0 deletions
1
documentation/extensibility-platform/defined-entities/webhook-behaviors.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# WebHook Behaviors |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.