<kpi:MessageContentXpathDialect>[http://www.w3.org/TR/1999/REC-xpath-19991116]</kpi:MessageContentXpathDialect>
<kpi:MessageContentSOADialect>[http://www.ebmwebsourcing.com/wsnotification/soaparameter]</kpi:MessageContentSOADialect>
<kpi:MessageContentSOAInterfaceNamespace>[http://org.ow2.petals/demo/travelagency/agency/]</kpi:MessageContentSOAInterfaceNamespace>
<kpi:MessageContentSOAInterfaceName>travelAgency</kpi:MessageContentSOAInterfaceName>
<kpi:MessageContentSOAServiceNamespace>[http://org.ow2.petals/demo/travelagency/agency/]</kpi:MessageContentSOAServiceNamespace>
<kpi:MessageContentSOAServiceName>travelAgencyService</kpi:MessageContentSOAServiceName>
<kpi:TransformPolicy>/modelNotification.xsl</kpi:TransformPolicy>
<kpi:ContextPolicyCorrelationId>true</kpi:ContextPolicyCorrelationId>
<kpi:ContextPolicyInterface>true</kpi:ContextPolicyInterface>
<kpi:ContextPolicyEndpoint>true</kpi:ContextPolicyEndpoint>
<kpi:ContextPolicyMeuuid>true</kpi:ContextPolicyMeuuid>
<kpi:ContextPolicyNotifDate>true</kpi:ContextPolicyNotifDate>
<kpi:ContextPolicyService>true</kpi:ContextPolicyService>
<kpi:ContextPolicyStatus>true</kpi:ContextPolicyStatus>
<kpi:ProcessPolicyAction>create</kpi:ProcessPolicyAction>
</jbi:consumes>
</jbi:services>
</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:
{code}
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' >
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<wsnebm:NotifyContent xmlns:wsnebm="http://www.ebmwebsourcing.com/WS-BaseNotification/NotifyContent"
processType="1" xmlns:age="\[http://org.ow2.petals/demo/travelagency/agency/">
<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>
</wsnebm:NotifyContent>
</xsl:template>
</xsl:stylesheet>
{code}
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>
{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.
h1. *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).
* To connect for the first time, use the default admin user (login/password: admin/admin)
For more details on configuring a referential in Petals View, check our PetalsView-UserGuide.pdf
Click on "Referential Management" in left menu panel.
h2. 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:
* 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.
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.
h2. If you didn't launch any flow in Petals ESB yet:
* Click on ''ADD'' button
** 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.
** 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.