Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

BaSyx / Documentation / Components / DataBridge / Features / Routes Configuration

< BaSyx ‎ | Documentation ‎ | Components ‎ | DataBridge ‎ | Features
Revision as of 05:32, 31 January 2023 by Unnamed Poltroon (Talk) (Created page with "= Routes Configuration = A route is a sequence of steps, executed in order by DataBridge, that consume and process a message. A route starts with a source and is followed by a...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Routes Configuration

A route is a sequence of steps, executed in order by DataBridge, that consume and process a message. A route starts with a source and is followed by a chain of endpoints and processors such as transformers and sinks.

A route in DataBridge can be configured using Json file. You can specify the Data Sources, Transformers, Data Sinks, and Route trigger. Specifying the trigger in the route instructs the DataBridge about when the route would be started. More information on different types of triggers can be found here [link].

Sample Single Route Configuration

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

The datasource, transformers, and datasinks should be defined in their respective configuration files. For details please see Protocol Integration [link].

Similary, you can configure multiple routes.

Sample Multiple Routes Configuration

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

Naming Conventions

The name of the routes configuration file should be routes.json.

Back to the top