Giter VIP home page Giter VIP logo

fuse-online-sample-extension's Introduction

Fuse Online Sample Extension

The repository contains extension that can be used in a integration to demonstrate the following flow:

 JMS -> Extension -> Datamapper -> Todo API

This sample integration connects to an AMQ broker to obtain item delivery records for a hypothetical enterprise. The integration then executes a custom step that operates on the records to identify any items that were damaged when they were received. After a simple data mapping, the integration connects to a REST API to obtain and provide contact information for vendors of damaged items.

Build from master

Prepared jar can be consumed from releases page.

Alternatively it can be also build from master with corresponding Fuse Online GA Maven version.

Latest version: 1.3.10.fuse-000001-redhat-1

Version can be obtained from Support page https://<Fuse Online URL>/support.

./mvnw -s configuration/settings.xml clean package

Camel route

<routes xmlns="http://camel.apache.org/schema/spring" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
  <route id="damage-report">
	<from uri="direct:damage-report"/>
	<log message="Received item list:\n${in.body}" />
	<unmarshal>
	  <jacksonxml unmarshalTypeName="io.syndesis.extension.InventoryList" />
	</unmarshal>
	<bean beanType="io.syndesis.extension.ReportService" method="generateReport" />
	<when>
	  <simple>${in.body} == null</simple>
	  <log message="No damaged item found."/>
	  <stop/>
	</when>
	<!-- Continue otherwise -->
    <log message="Generated report: ${in.body}"/>
  </route>
</routes>

XML format

<?xml version="1.0" encoding="UTF-8"?>
<inventoryReceived>
  <item id="XYZ123" damaged="false" vendor="Good Inc."/>
  <item id="ABC789" damaged="true" vendor="Bad Inc."/>
</inventoryReceived>

Todo Report

Task: Contact Joe Doe, 987 654 321. Damaged items: ABC789.

fuse-online-sample-extension's People

Contributors

dsimansk avatar pure-bot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.