Re: [Dev] How to compare two synapse properties in ESB

2017-11-24 Thread Senduran Balasubramaniyam
On Fri, Nov 24, 2017 at 10:20 AM, Thivya Mahenthirarasa 
wrote:

> Hi Dev,
>
> Requirement: I need to check a condition before loop back to out sequence
> whether the USER_NAME and PATIENT_ID are equal.
>
> I'm using a filter in my in sequence.
>
> 
>
> The above configuration is evaluated as synapse xpath and it is valid.
Should work. Make sure you have both the properties not having null values.

>
>
>   
>
>
>
> I'm seeing always "evaluates to false and no else path - skipping child
> mediators" in console even in the case of synapse properties USER_NAME and
> PATIENT_ID are equal.
>
> Could anyone help?
>
>
> Thanks,
> Thivya
>
>
> --
>
> *Thivya Mahenthirarasa*
>
> *Software Engineer -Support Team | WSO2*
>
>
> *Email: thi...@wso2.com *
>
> *Mobile: +94766461966 <+94%2076%20646%201966> *
> *Web: http://wso2.com *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to compare two synapse properties in ESB

2017-11-24 Thread Irham Iqbal
Hi Thivya,

Did you try as below. IMO this should work.



 

 
  

   


Thanks,
Iqbal

On Fri, Nov 24, 2017 at 2:13 PM, Rukshan Premathunga 
wrote:

> Hi Thivya,
>
> You may be able to use script mediator[1]. You can perfume the string
> comparison in the script mediator and then use the filter mediator for the
> result.
>
> 
> var user =  mc.getProperty("USER_NAME");
>var patient = mc.getProperty("PATIENT_ID");
>mc.setProperty("RESULT", user == patient);
> ]]>
> 
>
> 
>
> 
> 
> 
> 
> 
>
> 
>
> [1] https://docs.wso2.com/display/ESB500/Script+Mediator
>
> Thanks and Regards
>
> On Fri, Nov 24, 2017 at 10:20 AM, Thivya Mahenthirarasa 
> wrote:
>
>> Hi Dev,
>>
>> Requirement: I need to check a condition before loop back to out sequence
>> whether the USER_NAME and PATIENT_ID are equal.
>>
>> I'm using a filter in my in sequence.
>>
>> 
>>
>>   
>>
>>
>>
>> I'm seeing always "evaluates to false and no else path - skipping child
>> mediators" in console even in the case of synapse properties USER_NAME and
>> PATIENT_ID are equal.
>>
>> Could anyone help?
>>
>>
>> Thanks,
>> Thivya
>>
>>
>> --
>>
>> *Thivya Mahenthirarasa*
>>
>> *Software Engineer -Support Team | WSO2*
>>
>>
>> *Email: thi...@wso2.com *
>>
>> *Mobile: +94766461966 <+94%2076%20646%201966> *
>> *Web: http://wso2.com *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
> +94711822074 <+94%2071%20182%202074>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Irham Iqbal
Software Engineer
WSO2
phone: +94 777888452

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to compare two synapse properties in ESB

2017-11-24 Thread Rukshan Premathunga
Hi Thivya,

You may be able to use script mediator[1]. You can perfume the string
comparison in the script mediator and then use the filter mediator for the
result.















[1] https://docs.wso2.com/display/ESB500/Script+Mediator

Thanks and Regards

On Fri, Nov 24, 2017 at 10:20 AM, Thivya Mahenthirarasa 
wrote:

> Hi Dev,
>
> Requirement: I need to check a condition before loop back to out sequence
> whether the USER_NAME and PATIENT_ID are equal.
>
> I'm using a filter in my in sequence.
>
> 
>
>   
>
>
>
> I'm seeing always "evaluates to false and no else path - skipping child
> mediators" in console even in the case of synapse properties USER_NAME and
> PATIENT_ID are equal.
>
> Could anyone help?
>
>
> Thanks,
> Thivya
>
>
> --
>
> *Thivya Mahenthirarasa*
>
> *Software Engineer -Support Team | WSO2*
>
>
> *Email: thi...@wso2.com *
>
> *Mobile: +94766461966 <+94%2076%20646%201966> *
> *Web: http://wso2.com *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rukshan Chathuranga.
Software Engineer.
WSO2, Inc.
+94711822074
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to compare two synapse properties in ESB

2017-11-23 Thread Thivya Mahenthirarasa
Hi Dev,

Requirement: I need to check a condition before loop back to out sequence
whether the USER_NAME and PATIENT_ID are equal.

I'm using a filter in my in sequence.


   
  
   


I'm seeing always "evaluates to false and no else path - skipping child
mediators" in console even in the case of synapse properties USER_NAME and
PATIENT_ID are equal.

Could anyone help?


Thanks,
Thivya


-- 

*Thivya Mahenthirarasa*

*Software Engineer -Support Team | WSO2*


*Email: thi...@wso2.com *

*Mobile: +94766461966 *
*Web: http://wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev