Re: [Dev] Pass value from request to Rule mediator
Thanks Milinda. Regards, Nira On Tue, Nov 8, 2016 at 2:23 PM, Milinda Pererawrote: > Hi Niranjan, > > If understood properly your requirement, it is demonstrated in this sample > [1]. Here, text value of the symbol element from the getQuote request fed > as a fact to the rule engine. > > [1] https://docs.wso2.com/display/ESB500/Sample+600+%3A+Simple+M > essage+Transformation+-+Rule+Mediator+for+Message+Transformation > > Thanks, > Milinda > > On Tue, Nov 8, 2016 at 9:42 AM, Niranjan Karunanandham > wrote: > >> Hi Dev, >> >> Is it possible to pass a value (obtained from request) to a Rule >> mediator? >> In my use-case, I need to process a response I obtained in the ESB using >> a Rule mediator based on a value which is obtained in the request from the >> client. Currently I was able to do it by using a enrich mediator and adding >> the value (request) into the response and pass it to the rule mediator. >> >> Regards, >> Nira >> >> -- >> >> >> *Niranjan Karunanandham* >> Associate Technical Lead - WSO2 Inc. >> WSO2 Inc.: http://www.wso2.com >> >> > > > -- > Milinda Perera > Senior Software Engineer; > WSO2 Inc. http://wso2.com , > Mobile: (+94) 714 115 032 > > -- *Niranjan Karunanandham* Associate Technical Lead - WSO2 Inc. WSO2 Inc.: http://www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Pass value from request to Rule mediator
Hi Niranjan, If understood properly your requirement, it is demonstrated in this sample [1]. Here, text value of the symbol element from the getQuote request fed as a fact to the rule engine. [1] https://docs.wso2.com/display/ESB500/Sample+600+%3A+Simple+ Message+Transformation+-+Rule+Mediator+for+Message+Transformation Thanks, Milinda On Tue, Nov 8, 2016 at 9:42 AM, Niranjan Karunanandhamwrote: > Hi Dev, > > Is it possible to pass a value (obtained from request) to a Rule mediator? > In my use-case, I need to process a response I obtained in the ESB using a > Rule mediator based on a value which is obtained in the request from the > client. Currently I was able to do it by using a enrich mediator and adding > the value (request) into the response and pass it to the rule mediator. > > Regards, > Nira > > -- > > > *Niranjan Karunanandham* > Associate Technical Lead - WSO2 Inc. > WSO2 Inc.: http://www.wso2.com > > -- Milinda Perera Senior Software Engineer; WSO2 Inc. http://wso2.com , Mobile: (+94) 714 115 032 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Pass value from request to Rule mediator
Hi Dev, Is it possible to pass a value (obtained from request) to a Rule mediator? In my use-case, I need to process a response I obtained in the ESB using a Rule mediator based on a value which is obtained in the request from the client. Currently I was able to do it by using a enrich mediator and adding the value (request) into the response and pass it to the rule mediator. Regards, Nira -- *Niranjan Karunanandham* Associate Technical Lead - WSO2 Inc. WSO2 Inc.: http://www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev