[
https://jira.jboss.org/jira/browse/JBIDE-5627?page=com.atlassian.jira.plu...
]
Brian Fitzpatrick commented on JBIDE-5627:
------------------------------------------
Ok Slava... Here's what I've been able to track down...
We're going to change this slightly. Let's go...
• Content Based Router (Drools)...
• Content Based Router (Generic)...
• Content Based Router (Regex)...
• Content Based Router (XPath)...
For the Drools menu (Content Based Router (Drools)), use this example from the
Programmer's Guide:
<action process="split" name="ContentBasedRouter"
class="org.jboss.soa.esb.actions.ContentBasedRouter">
<property name="cbrAlias" value="Drools"/>
<property name="ruleSet" value="MyESBRules-XPath.drl"/>
<property name="ruleLanguage" value="XPathLanguage.dsl"/>
<property name="ruleReload" value="true"/>
<property name="destinations">
<route-to destination-name="express"
service-category="ExpressShipping"
service-name="ExpressShippingService"/>
<route-to destination-name="normal"
service-category="NormalShipping"
service-name="NormalShippingService"/>
</property>
</action>
So in this case, you can hide cbrAlias (default to "Drools") in the initial
wizard dialog. And focus the user on specifying the "process" (split or process
as values), the files for ruleSet and ruleLanguage, and whether ruleReload is true/false
(default: false).
For the Content Based Router (XPath) menu, use this example as a guide:
<action process="split" name="ContentBasedRouter"
class="org.jboss.soa.esb.actions.ContentBasedRouter">
<property name="cbrAlias" value="XPath"/>
<property name="ruleSet" value="xpath-rules.properties"/>
<property name="ruleReload" value="true"/>
<property name="destinations">
<route-to destination-name="express"
service-category="ExpressShipping"
service-name="ExpressShippingService"/>
<route-to destination-name="normal"
service-category="NormalShipping"
service-name="NormalShippingService"/>
</property>
</action>
Again, in this case you can hide cbrAlias (default to "XPath" in this case) in
the initial wizard dialog. And focus the user on specifying the "process" (split
or process as values), the optional file value for ruleSet (if it's an external xpath
vs. an inline one) and whether ruleReload is true/false (default: false).
And for the "Content Based Router (Regex)", use the XPath one example,
defaulting the cbrAlias to "Regex"... But beyond that I don't have a
specific example. I'm trying to nail one down now.
Create Content Based Router action variants for specific use cases
------------------------------------------------------------------
Key: JBIDE-5627
URL:
https://jira.jboss.org/jira/browse/JBIDE-5627
Project: Tools (JBoss Tools)
Issue Type: Sub-task
Components: esb
Affects Versions: 3.1.0.M4
Environment: jbods 3.0 m4
Reporter: Brian Fitzpatrick
Assignee: Viacheslav Kabanovich
Priority: Critical
Fix For: 3.1.0.CR2
Original Estimate: 0 minutes
Remaining Estimate: 0 minutes
We're thinking we should possibly provide some different variations of the
"Content Based Router..." menu in the ESB editor like this:
• Content Based Router (Drools)...
• Content Based Router (Drools XPath)...
• Content Based Router (Generic)...
• Content Based Router (XPath)...
• Content Based Router (Regex)...
What do you think Slava?
Here's some documentation:
XPathRouter:
http://www.redhat.com/docs/en-US/JBoss_SOA_Platform/5.0.0-Beta1/html-sing...
RegexRouter:
http://www.redhat.com/docs/en-US/JBoss_SOA_Platform/5.0.0-Beta1/html-sing...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira