InstallGuide

compared with
Version 7 by Sandra TRINO
on Jun 09, 2010 16:40.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (95)

View Page History
* Messages are saved into the database in a "raw" format. Petals View will give them meaning by naming and organizing them in a human-readable way.

\\
This diagram presents monitoring-related relationships between Petals ESB, various components, SE-notification, SE-KPI, configured sa-kpi and Petals View.
!worddavdf7cef4d8fe2c89965f69ae681bc7de0.png|height=318,width=718!\\

If you don't have any MySQL (or PostgreSQL) database server up and ready yet, download and install it following your system's procedure.

* Create a database for Petals View:
example: petalview

* Create a user with all rights granted to this database
example: user: view
pwd: view

* Create the database access configuration file. The name of this file is mandatory:
*petals-view.properties*

This file will hold the following informations - see the screen hereunder (informations in blue are values you have to change to conform with your database's name and user).
\_All database tables will be automatically created at Petals View's first launch.

{code}
h2. Stage 2: Configuring Petals View

* Download the KPI component (petals-se-kip.zip)
* Browse to petals-se-kip.zip/META-INF
* Open the jbi.xml file.
On the line <petals-se-kpi:hibernateURL>:
* On the line <petals-se-kpi:hibernateURL>: fill in the path of the file petals-view.properties (that you created in Stage 1).

example:

Save the changes.

* Download Petals View (petalsview.war)
* Browse to petalsview.war/WEB-INF/spring
* Open the file petals-view-annotation.xml
* Fill in the path to petals-view.properties file:

{code}
h2. Stage 3: Configuring and setting up notification environment

* Setting up Petals ESB and its components:
* Download and install Petals ESB
* Install the SE-Notification component
{warning}{color:#ff0000}You HAVE to install this component BEFORE ANY OTHER, otherwise there could be configuration conflict preventing notifications to work.{color}{warning}
* Install all components that you don't need to emit notifications
* Install the SE-KPI component (petals-se-kpi.zip) using the configuration created at Stage 2
* Configuring the components which will emit notifications: follow this procedure for each one of them:
** Browse to yourcomponent.zip/META-INF/
** Open the jbi.xml file
Find the following line and set up its value to "true":
** Find the following line and set up its value to "true" and save it :

{code}
<petalsCDK:notifications xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jbi="http://java.sun.com/xml/ns/jbi" xmlns:soap="http://petals.ow2.org/components/soap/version-x" xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-x">true</petalsCDK:notifications>
<petalsCDK:notifications xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:soap="http://petals.ow2.org/components/soap/version-x"
xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-x">
true
</petalsCDK:notifications>
{code}

Save
* Install the component in Petals ESB
* Install all Services Assemblies you want to use with these components.

h2. Stage 4: Creating your SA-KPI.zip and corresponding SU-KPI.zip
</jbi:jbi>{code}

* The text in red defines for which state you configure the present SU: in -- out -- status \--fault.
* Texts in blue define the filtering you want to apply to notifications:
<kpi:MessageContentXpath>boolean(/*\[local-name()={color:#23b8dc}'{color}{color:#0084d1}publishBusinessEntity'{color}\])</kpi:MessageContentXpath> :

** here you can apply filtering criteria on content fields, as long as they are present in the messages. If you don't want any content filtering, set the value to "true".
Example : <kpi:MessageContentXpath>boolean({color:#0084d1}true(){color})</kpi:MessageContentXpath>

** You can filter directly on service's endpoint or interface (these fields are not mandatory). You can also filter on endpoint:
<kpi:MessageContentSOAInterfaceNamespace>{color:#0084d1}[http://org.ow2.petals/demo/travelagency/agency/]{color}</kpi:MessageContentSOAInterfaceNamespace>
<kpi:MessageContentSOAInterfaceName>{color:#0084d1}travelAgency{color}</kpi:MessageContentSOAInterfaceName>

<kpi:MessageContentSOAServiceNamespace>{color:#0084d1}[http://org.ow2.petals/demo/travelagency/agency/]{color}</kpi:MessageContentSOAServiceNamespace>
<kpi:MessageContentSOAServiceName>{color:#0084d1}travelAgencyService{color}</kpi:MessageContentSOAServiceName>
<kpi:MessageContentSOAEndpoint>{color:#0084d1}travelAgencyEndpoint{color}</kpi:MessageContentSOAEndpoint>

* Text in orange defines the name of the file which will be used as a model for the notifications.

example of the modelNotification.xls file:
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<wsnebm:NotifyContent xmlns:wsnebm="http://www.ebmwebsourcing.com/WS-BaseNotification/NotifyContent" processType="{color:#23b8dc}1{color}" xmlns:age="[http://org.ow2.petals/demo/travelagency/agency/">
processType="1" xmlns:age="[http://org.ow2.petals/demo/travelagency/agency/">
<wsnebm:params>
<wsnebm:param><xsl:value-of select="//age:lastname/text()"/></wsnebm:param>
processType: here you have to type the same integer value as in Petals View's referential for this type of flows.
xmlns:age="[http://org.ow2.petals/demo/travelagency/agency/|http://org.ow2.petals/demo/travelagency/agency/]": here, you define a parameter
{code}
<wsnebm:params>
<wsnebm:param><xsl:value-of select="//age:lastname/text()"/></wsnebm:param>
<wsnebm:param><xsl:value-of select="//email/text()"/></wsnebm:param>
</wsnebm:params>
Here you define the paraIHere you define the parameters you want to rattach to your step. Notice that for now, the parameters rattached to an «&nbsp;out&nbsp;» state will not be taken in account.
{code}
Here you define the parameters you want to attach to your step. Notice that for now, the parameters attached to an «out» state will not be taken in account.

h2. *Stage 5: Configuring the Referential in Petals View*

* Deploy Petals View's war in an application server
* Connect to Petals View through any web browser ([http://server/PetalsView|http://server/PetalsView]). ([http://server/PetalsView]\|http://server/PetalsView).
* To connect for the first time, use the default admin user (login/password: admin/admin)

_PFor more details on configuring a referential in Petals View, check our PetalsView-UserGuide.pdf_
Click on "Referential Management" in left menu panel.

h3. If you already launch at least one flow in PetalsESB:

* Click on the "Unknown" flow type:
** its type is automatically filled in and cannot be changed
** define its human-readable name.
* Click on "CREATE"'
** You'll arrive directly on the flow type's edition page. Normally, all steps composing this flow should appear together with their service/interface name. To configure each one and any of the unknown steps:

To configure each one and any of the unknown steps:
* Click on an "unknown" step:
** Functional (human-readable) name: give it the name of your choice
** Interface name / Service name: these are automatically filled in with the right info
** Start flow? and End flow? checkboxes are used to define whether this step is first and/or last one of the flow.
** Success message: the message which will be displayed when step is in "Success" status.
** Error message: the message which will be displayed when your step is in "Error" status.
* Click on "Submit" to save changes and come back on flow type's edition screen.

Click on "Submit" to save changes and come back on flow type's edition screen. You can notice that now, the step you defined is not shown on "Unknown tables" anymore, but instead in the referential table.
Click on any defined step to access its edition screen. Under the general informations, you can see a sentence telling if you have associated parameters in your database.
Example: Number of unknown parameters: 1 (you have one associated parameter)

To configure a parameter :
* In functional fields click on "ADD" and fill in the following informations:
** Index: relates to its rank in notification, will be automatically incremented.
** Name: give it the human-readable name of your choice
** Global: if you check it, this parameter will not only be visible in step view, but also in global view of any flow of this flow type.
* Click on "Submit" to save changes and come back on step's edition screen. Notice that the number of unknown parameters have decreased by one (in our example, it's now 0).

Repeat the procedure to configure any and all steps and parameters.

h3. If you didn't launch any flow in Petals ESB yet:

* Click on ''ADD'' button
Give Donnez une valeur numérique au type (cette valeur correspond au ProcessType que vous définirez dans votre modèle de notification) et un nom
exemple : type : 1
nom : Flux test
** Give a numerical value type (this value corresponds to ProcessType you define in your model notification)
** define its human-readable name.
* Click on "CREATE" to save it and go to edition screen of the flow type's referential you just created. Here you can add steps.

* Click on "Add" to add and configure steps to your referential (fields in yellow are mandatory)
** Functional name: give it the name of your choice
example: Travel agency
** Interface name: fill in the qualified name of your interface
example: \{\[http://org.ow2.petals/demo/travelagency/agency/\]} travelAgency
** Service name: fill in the qualified name of your Service
example: \{\[http://org.ow2.petals/demo/travelagency/agency\]} travelAgencyService
** Start flow? and End flow? checkboxes are used to define whether this step is first and/or last one of the flow.
** Success message: the message which will be displayed when step is in "Success" status.
** Error message: the message which will be displayed when your step is in "Error" status.
* Click on "Submit" to save and go to the edition screen of the step you just created. You can then configure parameters.
* Click on "Add" to add parameters to your step.
IIndex: ** Index: relates to its rank in notification, will be automatically incremented.
** Name: give it the human-readable name of your choice
** Global: if checked, this parameter will be visible in step view AND in global view of any flow of this flow type.
* Click on "Submit" to save the changes.

Repeat the procedure to configure all steps and parameters you want to be shown in Petals View.