Page Properties |
---|
|
Product Version | 2.4 |
---|
Report Note | presentable |
---|
Assignee | Antje, Nils |
---|
Resources & Remarks Concept article linking to the respecive tutorials Modification History Name | Date | Product Version | Action |
---|
Antje | 08 FEB 2021 | 2.4 | New page properties macro. |
To be added to table in section "Inteceptor Types": |
Interceptor type | Evaluation target of the predicate | Interceptor input data | Description |
---|
dms.request.objects.upsert.database-before | All objects of the objects list in the data part of the multipart body after enrichment. | a multipart request body | The take-off point of the interceptor is after the REPOSITORY service. The initial request body is already normalized, validated and enriched with content stream properties. |
To be added as H1: Interceptor Configuration Example
The following example configures an interceptor that will be trigger by every update of a content (action code 301
). At the take-off point after the REPOSITORY service, the enriched request body is passed to the external endpoint specified by url
.
To activate this configuration, the REPOSITORY service needs to be restarted.
Code Block |
---|
language | yml |
---|
title | Example interceptorConfiguration.json. |
---|
linenumbers | true |
---|
|
{
"interceptors": [
{
"type": "dms.request.objects.upsert.database-before",
"predicate": "spel:options['action']==301",
"url": "http://exampleinterceptorcontentupdate/api/dms/objects/upsert",
"useDiscovery": true
}
]
}
Antje | 05 MAR 2021 | 2020 Winter | New interceptor type added. |
Excerpt |
---|
Intervening a running process at a certain position and redirecting the process flow in order to include project-specific processing steps. |
...
Interceptor type | Evaluation target of the predicate | Interceptor input data | Description |
---|
getContent | API DMS object in JSON format derived from given objectId | objectId | Manipulation of the binary content of the return statement by a project-specific service |
search | Structure of the specific class SearchInterceptorObject | Search query object | Manipulation of the search query parameter and the search result. |
updateDmsObject | First API DMS object in the list in JSON format that is passed to the corresponding update endpoint | Updated metadata and metadata of current version | Manipulation of the update properties that will be applied to a DMS object. |
dms.request.objects.upsert.database-before | All objects of the objects list in the data part of the multipart body after enrichment. | a multipart request body | The take-off point of the interceptor is after the REPOSITORY service. The initial request body is already normalized, validated and enriched with content stream properties. |
Interceptor Configuration Example
The following example configures an interceptor that will be trigger by every update of a content (action code 301
). At the take-off point after the REPOSITORY service, the enriched request body is passed to the external endpoint specified by url
.
To activate this configuration, the REPOSITORY service needs to be restarted.
Code Block |
---|
language | yml |
---|
title | Example interceptorConfiguration.json. |
---|
linenumbers | true |
---|
|
{
"interceptors": [
{
"type": "dms.request.objects.upsert.database-before",
"predicate": "spel:options['action']==301",
"url": "http://exampleinterceptorcontentupdate/api/dms/objects/upsert",
"useDiscovery": true
}
]
}
|
Summary
This article gave an overview of the interceptors in yuuvis® Momentum. If you want to extend the functionality of your system, system hooks also might be an interesting topic for you.
...
Info |
---|
|
Read on
Section |
---|
Column |
---|
| Insert excerpt |
---|
| Interceptor Example Tutorial |
---|
| Interceptor Example Tutorial |
---|
nopanel | true |
---|
| Keep on reading
|
Column |
---|
| Insert excerpt |
---|
| Preprocessing Metadata using Webhooks |
---|
| Preprocessing Metadata using Webhooks |
---|
nopanel | true |
---|
| Keep on reading |
|
|