Questions asked by vhsvuonghttps://answers.axonivy.com/questions/asked-by/563/vhsvuong/?type=rssQuestions asked by <a href="/users/563/vhsvuong" >vhsvuong</a>enFri, 10 Mar 2017 03:33:16 -0500How to inject custom exception handler into Ivyhttps://answers.axonivy.com/questions/2488/how-to-inject-custom-exception-handler-into-ivy<p>Hi ivy team,</p> <p>Now, I need to use the component <strong>p:ajaxExceptionHandler</strong> which required to configure in faces configuration file (faces-config.xml). </p> <p>When I looked at this file in Ivy designer, I saw that you have already declared your own custom exception handler as <strong>RuntimeLogExceptionHandlerFactory</strong>. And inside that class, you always return <strong>RuntimeLogExceptionHandler</strong> instance </p> <p>Note: you can refer this link to take an example: <a href="https://wmarkito.wordpress.com/2012/04/05/adding-global-exception-handling-using-jsf-2-x-exceptionhandler/">https://wmarkito.wordpress.com/2012/04/05/adding-global-exception-handling-using-jsf-2-x-exceptionhandler/</a> <strong>Or</strong> primefaces user guide documentation in the 11.3 section (Exception handler)</p> <p>How can I inject my custom exception handler for using the component <strong>p:ajaxExceptionHandler</strong> ???</p> <p>Please help me ivyteam, thank in advance. :)</p> <p>Vuong Vu</p>vhsvuongFri, 10 Mar 2017 03:33:16 -0500https://answers.axonivy.com/questions/2488/how-to-inject-custom-exception-handler-into-ivyjsfJavaDoc of IDataCach with lifetime parameterhttps://answers.axonivy.com/questions/2440/javadoc-of-idatacach-with-lifetime-parameter<p>Hi Ivyteam, </p> <p>According to the javadoc: <img alt="alt text" src="http://answers.axonivy.com/upfiles/IDataCache_NC0V36q.PNG"></p> <p>I try to store the value by using IDatacach with <strong>lifetime's value is 0</strong>. Then I expected that it will be expired after 1 minute. But unfortunately, <strong>it seems to be infinite time</strong> in IvyCach, even I call it again after 5 minutes.</p> <p>After Hau Tran's TA guy dig into the ivy source code. He found that, there is one condition to check like that <strong><em>if (lifetime &gt; 0)</em></strong> in the method processGroup and processEntry of DataCacheInvalidationJob class.</p> <p>Now, you see that the java doc make me consufed about the lifetime's explanation.</p> <p>I am looking forward to hearing any ideas from you :)</p> <p>Vuong Vu</p>vhsvuongTue, 14 Feb 2017 05:56:10 -0500https://answers.axonivy.com/questions/2440/javadoc-of-idatacach-with-lifetime-parameterivyHow to handle date format with SOAP web service in Ivyhttps://answers.axonivy.com/questions/2062/how-to-handle-date-format-with-soap-web-service-in-ivy<p>Hi Everyone,</p> <p>Now, I got the trouble with format date in SOAP webservice which created by Ivy</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/SoapWS_DateError_Ivy_FIwnKbB.png"></p> <p>When I call it by SOAP client, I always got the exception like <strong>Unmarshalling Error: 28.08.2016</strong> Because as we know, the expected format for date in XML is: YYYY-MM-DDThh:mm:ss. But I want to use the custom format like dd.MM.YYYY</p> <p>Do you have any ideas about that?</p> <p>Regards</p>vhsvuongThu, 29 Sep 2016 07:51:06 -0400https://answers.axonivy.com/questions/2062/how-to-handle-date-format-with-soap-web-service-in-ivyivywebserviceHow update the INote in Ivyhttps://answers.axonivy.com/questions/1951/how-update-the-inote-in-ivy<p>Hello everyone,</p> <p>Recently, I have to manipulate for CRUD operation with INote in ivy. After I looked at the INoteable interface. I saw that Ivy team had just exposed some pubic api like createNote, deleteNote ..etc.</p> <p>My problem is that I want to update the INote with built-in feature in Ivy. How can I do that?</p> <p>@note: this is a link for INoteable api: <a href="http://developer.axonivy.com/doc/latest/publicApi/index.html?ch/ivyteam/ivy/workflow/INoteable.html">http://developer.axonivy.com/doc/latest/publicApi/index.html?ch/ivyteam/ivy/workflow/INoteable.html</a> Anybody help me, please</p> <p>Thanks alot</p>vhsvuongMon, 08 Aug 2016 16:36:55 -0400https://answers.axonivy.com/questions/1951/how-update-the-inote-in-ivyapiivyHow to catch exception with Task Switch Gateway componenthttps://answers.axonivy.com/questions/1554/how-to-catch-exception-with-task-switch-gateway-component<p>Hi all,</p> <p>When I started the task in the task list. I often got the exception: </p> <p><strong>RequestException: The task with identifier '846' was already finished or does not exist (Session identifier is '45').</strong></p> <p>But I want to catch this exception and show a friendly dialog to the user.</p> <p>I am looking forward to hearing any ideas from you</p> <p>Vuong Vu, Vision team</p>vhsvuongFri, 13 Nov 2015 08:02:00 -0500https://answers.axonivy.com/questions/1554/how-to-catch-exception-with-task-switch-gateway-componenttask