FromWatchRtEntity@1
Der Node FromWatchRtEntity@1 überwacht Änderungen im OctoMesh Asset Repository und löst die Ausführung der Transformations-Pipeline aus.
Adapter-Voraussetzungen
Node-Konfiguration
Zu den Feldern path, targetPath, targetValueWriteMode und targetValueKind siehe Überblick.
triggers:
- type: FromWatchRtEntity@1
updateTypes: UPDATE # The type of change to watch for, can be INSERT, UPDATE, REPLACE, DELETE, or a combination of these
ckTypeId: OctoSdkDemo/Customer # The type of entity to watch for changes
rtId: 65d5c447b420da3fb12381bb # OPTIONAL: The runtime ID of the entity to watch for changes
beforeFieldFilters: # OPTIONAL: Filters to apply to the entity before changes are applied
- field: name # The field to filter
value: "John Doe" # The value to filter
operator: EQ # The operator to use for the filter
afterFieldFilters: # OPTIONAL: Filters to apply to the entity after changes are applied
- field: name # The field to filter
value: "Jane Doe" # The value to filter
operator: EQ # The operator to use for the filter
- Das Feld
operatorist vom Typ FieldFilterOperatorDto, alle Werte sind im Format CONSTANT_NAME gültig. - Das Feld
updateTypesist vom Typ UpdateType, alle Werte sind im Format CONSTANT_NAME gültig.
Beispiel
Dieses Beispiel löst die Pipeline aus, wenn eine Änderung an der Customer-Entität erkannt wird. Die Logger-Transformation schreibt eine Nachricht in das Log.
triggers:
- type: FromWatchRtEntity@1
description: Retrieve changes from db
updateTypes: UPDATE
ckTypeId: OctoSdkDemo/Customer
transformations:
- type: Logger@1
message: "Log message" # Message to write to the log