Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "BaSyx / Documentation / Components / DataBridge / Features / Event"

(Created page with "= Event = The Event trigger is used to generate message exchanges whenever an event occurs. This trigger is used when the data source produces data asynchronously for e.g. whe...")
 
Line 3: Line 3:
  
 
== Configuration ==
 
== Configuration ==
You can specify '''"trigger": "event"''' in '''routes.json''' [Link] configuration file.
+
You can specify '''"trigger": "event"''' in '''routes.json'''.
  
 
=== Sample Route Configuration with Event ===  
 
=== Sample Route Configuration with Event ===  
Line 18: Line 18:
 
</pre>
 
</pre>
  
Please check Protocol Integration MQTT[Link].
+
== Working Example ==
 +
The integration example with '''event triggered''' MQTT as a data source, JSONata as a transformer, and AAS as a data sink is available on [https://github.com/eclipse-basyx/basyx-databridge/tree/main/basyx.components.databridge.examples/basyx.components.databridge.examples.mqtt-jsonata-aas GitHub DataBridge Example].

Revision as of 07:00, 1 February 2023

Event

The Event trigger is used to generate message exchanges whenever an event occurs. This trigger is used when the data source produces data asynchronously for e.g. when an MQTT message is published on a topic then the route would start processing.

Configuration

You can specify "trigger": "event" in routes.json.

Sample Route Configuration with Event

[
	{
		"routeId": "namedRoute",
		"datasource": "property1",
		"transformers": ["jsonataA"],
		"datasinks": ["ConnectedSubmodel/ConnectedPropertyA"],
		"trigger": "event"
	}
]

Working Example

The integration example with event triggered MQTT as a data source, JSONata as a transformer, and AAS as a data sink is available on GitHub DataBridge Example.

Back to the top