where i can learn WSO2 ESB expressions - wso2

I am doing some POC using WSO2 ESB and other stack. I have seen different expression for property files in some examples scenario.
i.e. expression="get-property('registry','conf:/test.xml')"
expression="$ctx:customerID"
can anyone tell me where i can find all these expression syntax.

Expressions are about retrieving the value. These will be useful,
http://rajikak.blogspot.com/2010/04/xpath-functions-and-properties-avilable.html
http://docs.wso2.org/display/ESB470/Mediators
The second points to official documentation of WSO2 ESB where each mediator is explained in detail.

Below link explain all the expression we need to access the message passing through the ESB.
http://docs.wso2.org/display/ESB470/Properties+Reference

Related

what flavor of Regular expression being used in Wso2 esb 4.9.0

Could anyone confirm which flavor of regular expression being used by wso2 esb 4.9.0 or others ?
thanks
Finally, with some research I get to know "Java has it's own flavor for regular expression"
Documentation for all possible keyword or tokens can be found on the following url https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html.

Is there a loopback-soap-connector example?

I would like to use Loopback to do CRUD via SOAP after having expose it as REST with the SOAP connector (https://docs.strongloop.com/display/public/LB/SOAP+connector). Can someone provide me code examples of this? I have not been able to find such docs anywhere.
There's one in the loopback-example repo:
https://github.com/strongloop/loopback-example-connector/tree/soap

WSO2 CEP 3.0.0 support of XPath 2.0 functions in the event builder

I am currently creating an Event Builder in WSO2 CEP 3.0.0. based on an XML mapping.
I would like to use soma XPath 2.0 functions like tokenize in the XPath expression.
It seems that that the Xpath parser used by CEP is jaxen that does only support XPath 1.0 (which is far more limited...).
Does anybody know if it is possible to use XPath 2.0 functions in the Event Builder?
Thanks,
Eric
CEP 3.0.0 uses AxiomXPath which is based on jaxen (Axiom 1.2.11). So it will not be possible to use XPath 2.0 functions as you have correctly inferred.
I agree that this is quite limitative. However, the main consideration here was that WSO2 ESB has first class support for XPath and if any complex XML processing needs to be done, it can be done by the ESB first and then a Thrift(WSO2Event) event can be sent to run CEP queries on that event.
However, it might be useful to add more support for XPath in event builder. You can raise a JIRA or mail thread at WSO2 dev mailing list to discuss this further.
HTH,
Lasantha

How to run WSO2 ESB Samples in newer version?

I'm looking at WSO2 ESB samples http://docs.wso2.org/wiki/display/ESB460/ESB+Samples+Setup
It tells me to use "./wso2esb-samples.sh -sn " to start ESB with different configurations. But I couldn't find wso2esb-samples.sh anywhere... How should I start ESB with different configuration?
And a side question, if I want to start ESB with multiple configrations, how should it be configured?
Thanks in advance!
It is located inside <ESB_HOME>/bin directory.
Samples are given to provide information regarding the common use-cases and to provide the experience the different features of the WSO2 ESB. Yes, you can configure the ESB with different configuration depend on your requirement, for that you can follow our ESB doc which gives all the information that you required...
Thanks,
Mohan

WSO2 ESB Javascript replace with regular expressions

I am trying to use the replace function of a javascript String with a regular expression as the first argument. It causes an error because the parameter does not fix the replace arguments (char, char). The sentence is:
prop = prop.replace(/'/g,"");
I test the instruction in chrome javascript console and it works as expected. The problem seems to be that the javascript version wso2 uses does not implement this feature.
Any help?
To achieve a better productivity with javascript, it is recommended to use the script mediator to do your javascript validations in WSO2 ESB. You can use inline javascript codes as well as to save the javascirpt in registry and re-use when necessary. Please refer to the following link [1] for more details on how to implement the script mediator using WSO2 ESB.
[1] https://docs.wso2.com/display/ESB490/Script+Mediator
Regards,
Pubudu.