<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: how do I set alternative gateway to interrogate the database ?</title><link>https://answers.axonivy.com/questions/1292/how-do-i-set-alternative-gateway-to-interrogate-the-database</link><description>&lt;p&gt;Hi , &lt;/p&gt;
&lt;p&gt;in my project I've set the following conditions in the alternative gateway : &lt;/p&gt;
&lt;p&gt;in.Login.givenpassword.matches(in.Login.parola.parola)
!in.Login.givenpassword.matches(in.Login.parola.parola)&lt;/p&gt;
&lt;p&gt;So it the password from the database is correct , it goes further , if password interrogated in the database is not correct the process goes to the alternative gateway to login again . &lt;/p&gt;
&lt;p&gt;The problem is that it does not matter what I type in the password field as process goes on the same path : !in.Login.givenpassword.matches(in.Login.parola.parola)&lt;/p&gt;
&lt;p&gt;What am I doing wrong ?&lt;/p&gt;
&lt;p&gt;Regards,
Anda&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1292/how-do-i-set-alternative-gateway-to-interrogate-the-database" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 28 Apr 2015 07:22:48 -0400</lastBuildDate><item><title>Comment by andachirita on Christian Strebel's answer</title><link>https://answers.axonivy.com/questions/1292/how-do-i-set-alternative-gateway-to-interrogate-the-database#1294</link><description>&lt;p&gt;He problem is that I cannot compare the attribute from the entity class against the value inserted in the database . If they do not match , process should enter in a loop and not go any further . If they match process can continue . That is why I've used the alternative gateway .&lt;/p&gt;
&lt;p&gt;Hope it helps ,
Anda&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">andachirita</dc:creator><pubDate>Tue, 28 Apr 2015 07:22:48 -0400</pubDate><guid>https://answers.axonivy.com/questions/1292/how-do-i-set-alternative-gateway-to-interrogate-the-database#1294</guid></item><item><title>Answer by Christian Strebel</title><link>https://answers.axonivy.com/questions/1292/how-do-i-set-alternative-gateway-to-interrogate-the-database/1293</link><description>&lt;p&gt;I think matches(...) is the problem, this is used for Regex matching.
Try to use equals() method.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Strebel</dc:creator><pubDate>Mon, 27 Apr 2015 15:51:57 -0400</pubDate><guid>https://answers.axonivy.com/questions/1292/how-do-i-set-alternative-gateway-to-interrogate-the-database/1293</guid></item></channel></rss>