GVExample TOUPPER

From GreenVulcano Wiki
Revision as of 01:26, 10 February 2012 by Anonymous (talk) (How To)
Jump to: navigation, search

Description

This example shows a synchronous service.

How To

New Vulcon Project

As this is our first example, the first step will be the creation of a new VulCon Project.

  1. From the Menu panel of VulCon click File -> New -> Project. A new windows will be open containing the projects type.
  2. Select "New Vulcon Project" item. Then click Next
  3. Set the project name and Location. We named the project as TEST and the Location as /home/user/Lavoro/GvEnterprise3.2.0/workflow. Then click finish. The new VulCon project TEST has been created.

The best mode for creating a Service is through the Wizard. But for use it you must first define the System, Channel and the operations you need for. From the core view:

  1. Expand the GVSystems item.
  2. Right clicking on Systems, insert-after -> System. A new element System will be created.
  3. Set the System parameters in the Properties panel. We named it GVESB_TEST
  4. By right clicking the System element, you can insert a new Channel.
  5. Click on this new Channel element and set the property id_channel. We named TEST_CHANNEL
  6. Finally, insert the operation you need for the workflow. In this case a test-service-call. Right clicking Channel -> Insert after (or Insert before) -> test-service-call. A new element will be created.
  7. Set the test-service-call attributes. From the properties view set those as follows:
  • name: test.
New GreenVulcano® ESB Service Wizard

Now we are able to use the Wizard.

  1. From the Core View of VulCon. Right click the element Services -> Wizard New Service
  2. A new windows will be open where you can set the name of the Service you want to create, in this case we named TOUPPER. You can also select the paradigm, for this example will be synchronous-synchronous. Click next.
  3. Set System as GVESB and Channel TEST_CHANNEL. Then finish.


TOUPPER flow

A new Service named TOUPPER has been created and the editor will be open automatically, showing the nodes involved in our Flow.

  • The Start node sets the flow first node. In this case request
  • The Operation node request calls the test-service-call operation test and executes it.
  • A Check node named check_status is also inserted for controlling the success of the preceding node.
  • If success flow passes to the End node return_status
  • In case of Error, flow goes to the End node return_error. The difference with return_status is signed by the Connection with check_status Check node. In this case an Error Connection (the Red arrow) have been used.
  • Save clicking the Save icon from the Core View

Now you are able to test your first VulCon service from the GV Console®. But first you need to export the configuration.

Exporting configuration

Once the flow is correctly configured, the user can export the configuration and pass it to the GreenVulcano® ESB import tool, in order to add into the ESB the service just created.

  1. The Export function is available in the view "Project". Expand the project
  2. Before you proceed press F5 to refresh the file list.
  3. Right click the conf folder. It will open a drop-down list.
  4. Clicking "Export" will be open a window. Select Vulcon Export Tool -> Vulcon Project. Then Next
  5. Select the project and set the path where you want to save the file. Then Finish


For knowing how test your service using GV Console® click here.