In this section we will learn about the Project.xpml file and its content. From now on, I will refer to it as XPML file since there can be only one Project.xpml file within a single Ultra Project.
The XPML file is the beginning point of the project when it comes to the execution of the project. Sample XPML file is shown in below XML and there are few key components in this file.
<x:project id="mySampleProject" name="mySampleProject" version="1.0-SNAPSHOT" xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.adroitlogic.org/x/x-project" xsi:schemaLocation="http://www.adroitlogic.org/x/x-project http://schemas.adroitlogic.org/x/x-project-1.0.0.xsdhttp://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd"> <x:description> A sample project that demonstrates the projects concept </x:description> <x:flows> <x:flow id="sampleFlow" file="helloWorldFlow.xcml"/> </x:flows> <x:resources> </x:resources> </x:project>
Project Id - This specifies the Id of the project (id="mySampleProject)
Project Name - Name of the current Project (name="mySampleProject")
Project Version - Current version of the project (version="1.0-SNAPSHOT")
Description - A brief description about the current project
Flows - This section contains the current Integration Flows in the project. Only the flows specified in this section will be deployed when the project is executed.
Resources - This section contains spring beans which are used by the Integration Flows. User can add or remove beans through a UI and in the next section let’s see how to do that.