Skip to content

Commit

Permalink
Merge pull request #59 from assimbly/templates/aleris
Browse files Browse the repository at this point in the history
Dil templates - Aleris
  • Loading branch information
skin27 committed Nov 2, 2022
2 parents 84ef2a1 + 2cefa64 commit b40f9b3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions dil/src/main/java/org/assimbly/dil/blocks/templates/Aleris.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package org.assimbly.dil.blocks.templates;

import org.apache.camel.builder.RouteBuilder;

public class Aleris extends RouteBuilder {

@Override
public void configure() throws Exception {

routeTemplate("aleris-action")
.templateParameter("routeconfiguration_id","0")
.templateParameter("id")
.templateParameter("in")
.templateParameter("out")
.from("{{in}}")
.routeConfigurationId("{{routeconfiguration_id}}")
.to("aleris:{{id}}")
.to("{{out}}");

routeTemplate("aleris-sink")
.templateParameter("routeconfiguration_id","0")
.templateParameter("id")
.templateParameter("in")
.from("{{in}}")
.routeConfigurationId("{{routeconfiguration_id}}")
.to("aleris:{{id}}");

}

}

0 comments on commit b40f9b3

Please sign in to comment.