-
-
Notifications
You must be signed in to change notification settings - Fork 9
Route
There are multiple ways to create a new connector:
1) GUI
The default way to create a new flow is to use the gui.
- On the main page (flows) click the Action button and choose "Create Routes"
- Give the flow a name.
- Select a predefined route or click on the plus button to add a new route.
When the route is add or modified an XML editor is opened. There you can edit the route as XML. A route will looks something like this:
<route>
<from uri="file:home/customers/new"/>
<log message="Received a new customer!"/>
<to uri="file:home/customers/old"/>
</route>
More info see Camel Documentation
2) Editor
Use a text editor to a text editor (like Notepad++ or Visual Studio Code) and create an XML file. The XML file can be either in Assimbly format or in Camel XML format
3) Import from Gateway settings
Under settings --> gateway there is an import button where a XML configuration can be imported.
4) Clone
When clicking on the name of flow in the main page you get a view of the flow configuration. When clicking on the "Clone" button the wizard opens with this configuration. There you can change every part of the configuration (for example giving the flow a new name) and save the configuration.
5) REST API
The REST API can be called. For this four resources need to be called, namely: flow and route.
A flow have 5 basic actions:
- Start
- Stop
- Pause
- Resume
- Restart
From the main page the actions which are available have active buttons. When you start a flow you can see the status of flow change from inactive to active. In case of an error the status button gets red. You can hover the status button to get more info.
There are various other ways of running flows like using the API or the deploy directory.