Questions Tagged With best-practicehttps://answers.axonivy.com/tags/best-practice/?type=rssquestions tagged <span class="tag">best-practice</span>enMon, 14 Nov 2016 20:58:27 -0500Is there a way to use some kind of semaphore in ivy?https://answers.axonivy.com/questions/2184/is-there-a-way-to-use-some-kind-of-semaphore-in-ivy<p>I have the situation that I have a database call which gives me a list of elements. Some activities later I write down the modified elements to the db. This is working fine als long as I don't have parallelism. The problem is that the second db operation potentially affects the first db operation. If now two tasks arrive at the first element and read from the database before one task has written the result to the db I get a wrong result. The solution would be to prevent the second task entering the first database read until the first task has written down the result.</p> <p>Do we have some kind of support for such cases?</p>ruffzyMon, 14 Nov 2016 20:58:27 -0500https://answers.axonivy.com/questions/2184/is-there-a-way-to-use-some-kind-of-semaphore-in-ivybest-practicepersistencethreadError handler redirect to Web Page or User Dialog ?https://answers.axonivy.com/questions/1940/error-handler-redirect-to-web-page-or-user-dialog<p>Hello All,</p> <p>I have an interesting situation.</p> <p>I have a User Dialog with interactions and a bit complex Logic. There is a point in the process where I`m trowing an exception and I want to redirect the user to an error page: <img alt="alt text" src="http://answers.axonivy.com/upfiles/1.JPG"></p> <p>I want to catch the exception in the business process where to do the redirect. Here is the confusing part:</p> <ol> <li> <p>If I redirect to User Dialog, everything is working correctly: <img alt="alt text" src="http://answers.axonivy.com/upfiles/3.JPG"></p> </li> <li> <p>If I redirect to Web Page (JSP from the CMS) it is trowing an error. <img alt="alt text" src="http://answers.axonivy.com/upfiles/2.JPG"></p> </li> </ol> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/4.JPG"></p> <p>Is this a bug or wrong architecture from my side ?</p> <p>anyway, what is the best practice for managing exceptions in User Dialog`s Logic?</p> <p>Best Regards, Yordan Yunchov</p>Stelt0Thu, 04 Aug 2016 14:38:50 -0400https://answers.axonivy.com/questions/1940/error-handler-redirect-to-web-page-or-user-dialoghtmluserdialogbest-practiceerror-handlingTime triggered Processhttps://answers.axonivy.com/questions/1906/time-triggered-process<p>Hi</p> <p>I'd likt to get a process started every first day of a month. Is it possible to schedule a process?</p> <p>Regards, Daniel</p>dharlachWed, 20 Jul 2016 15:17:46 -0400https://answers.axonivy.com/questions/1906/time-triggered-processprocessbest-practiceWhere should we store the files?https://answers.axonivy.com/questions/1882/where-should-we-store-the-files<p>Hi,</p> <p>We're facing following situation and would like to know your recommendation:</p> <p>We generate files (employee worksheets) and want to store them (sometimes there will be different versions of a worksheet). Where would you recommend to store the files? Is there a way to persist them? Or would you store them in a file location or even cms? </p> <p>Thanks for your recommendation in advance.</p> <p>Regards, Daniel</p>dharlachTue, 12 Jul 2016 09:32:34 -0400https://answers.axonivy.com/questions/1882/where-should-we-store-the-filesbest-practiceWhere should I store my data?https://answers.axonivy.com/questions/211/where-should-i-store-my-data<p>Xpert.ivy provides multiple possibilities to manage data. Is there a overview to get a quick overview in which case I should use which 'data store'? </p>Flavio SadeghiTue, 17 Dec 2013 10:28:18 -0500https://answers.axonivy.com/questions/211/where-should-i-store-my-databest-practice