To communicate details of a particular microservice/component to the servers, we need to define the microservice in such a way that servers understand the microservice. The language used for this purpose is XML. A component is defined using an XML file called 'ServiceDesriptor.xml'. The definition includes properties of the component such as its name, operating system to which the component is complaint to, and channels through which the component interacts with other components among other properties.

A wizard to aid users to define the component to be created is provided in the template engine.

On Windows
  1. Browse to %TEMPLATE_ENGINE%
  2. Run templates-console.bat; a command prompt opens in directory pointed to %TEMPLATE_ENGINE%.
  3. Run the command wizard.bat specifying the destination directory as follows:

    Example


    Figure 1: wizard.bat command specifying the destination directory

Icon
  • Run wizard.bat without any arguments to see the help.
  • -dest argument specifies the directory where to generate project.

On Linux
  1. Browse to %TEMPLATE_ENGINE% in Linux console
  2. Run the command wizard.sh specifying the destination directory as follows:

    Example
Icon
  • Run wizard.sh without any arguments to see the help.
  • -dest argument specifies the directory where to generate project.

Icon

Continue referring the next sections to understand rest of the steps.

Adaptavist ThemeBuilder EngineAtlassian Confluence