Questions asked by Emmanuel Combahttps://answers.axonivy.com/questions/asked-by/932/emmanuel-comba/?type=rssQuestions asked by <a href="/users/932/emmanuel-comba" >Emmanuel Comba</a>enTue, 28 May 2019 03:40:01 -0400Ivy business data store rollback in case of problem (transaction management)https://answers.axonivy.com/questions/3828/ivy-business-data-store-rollback-in-case-of-problem-transaction-management<p>Hello IvyTeam,</p> <p>We are using the Ivy.repo() API for storing our data. Let's say we want to save a list of objects and if there is a problem by saving one of them, we should rollback what has been done for the previous ones.</p> <p>Is there a kind of transaction management with the Ivy.repo() API? Can we work like in one "transaction" for having the advantage of such a rollback function?</p> <p>Or should we implement it by our own, like going back to previous objects versions? Do you know how to achieve that?</p> <p>Thanks a lot in advance Emmanuel</p>Emmanuel CombaTue, 28 May 2019 03:40:01 -0400https://answers.axonivy.com/questions/3828/ivy-business-data-store-rollback-in-case-of-problem-transaction-managementbusiness-datatransactionrollbackivyHow to execute some code at Ivy Project deployment time for upgrading a database ?https://answers.axonivy.com/questions/3574/how-to-execute-some-code-at-ivy-project-deployment-time-for-upgrading-a-database<p>Hi IvyTeam,</p> <p>We have the following situation: we will have to deploy from time to time an Ivy Application. This application defines a database (MS SQL) for storing the application's data. We would like to create/update this database automatically at Ivy Deployment time with an database updating system like Flyway. (With some SQL Scripts CREATE / UPDATE TABLE ....)</p> <ul> <li>Is that already possible with Ivy? Ivy does it already at Ivy Engine installation or upgrade time with its System database. This would be a great feature if we could create/upgrade our project's databases at application deployment time.</li> <li>If not we should be able to execute some code at Ivy deployment time. Is there some Ivy Server Extension points allowing this easily?</li> </ul> <p>Thanks a lot in advance Cheers Emmanuel</p>Emmanuel CombaWed, 12 Dec 2018 09:49:00 -0500https://answers.axonivy.com/questions/3574/how-to-execute-some-code-at-ivy-project-deployment-time-for-upgrading-a-databasedatabaseivydeploymentIvy Process Start parameters Encodinghttps://answers.axonivy.com/questions/3287/ivy-process-start-parameters-encoding<p>Hello IvyTeam !</p> <p>Sometimes Ivy Processes are called via their url in a browser and we set some params as URLEncoded Parameters. Example : firstname=Élisabeth and lastname=Müller <a href="http://comba:8081/ivy/pro/designer/services_mock/162D9B06E7844FCB/videoIdentification.ivp?gender=Frau&amp;firstname=%C3%89lisabeth&amp;lastname=M%C3%BCller">http://comba:8081/ivy/pro/designer/services_mock/162D9B06E7844FCB/videoIdentification.ivp?gender=Frau&amp;firstname=%C3%89lisabeth&amp;lastname=M%C3%BCller</a></p> <p>In that case we have to encode the url parameters with "ISO-8859-1" charset which is the IVY default encoding. Is that possible to change this to "UTF-8"? Shouldn't Ivy set the default encoding to "UTF-8"?</p> <p>This has been tested with Ivy 7.0.4.</p> <p>Thanks a lot in advance Cheers Emmanuel</p>Emmanuel CombaTue, 29 May 2018 07:04:59 -0400https://answers.axonivy.com/questions/3287/ivy-process-start-parameters-encodingprocessencodingHow to quick search for some text in a mod file?https://answers.axonivy.com/questions/3277/how-to-quick-search-for-some-text-in-a-mod-file<p>Hello IvyTeam,</p> <p>We need often to search for some code snippet in some big Ivy Process files (.mod). We can do it in the text editor but it is not very handy to change anything there. The best would be to search with CTRL+F for some text. Then the designer should highlight the Steps where this text has been found. This would be a great help for our productivity.</p> <p>Do you plan to do such an improvement? </p> <p>Thanks in advance Emmanuel</p>Emmanuel CombaThu, 17 May 2018 10:47:34 -0400https://answers.axonivy.com/questions/3277/how-to-quick-search-for-some-text-in-a-mod-fileprocessfileHow to get the URL of a process start within a JAX-RS classhttps://answers.axonivy.com/questions/3218/how-to-get-the-url-of-a-process-start-within-a-jax-rs-class<p>Hello IvyTeam,</p> <p>My Ivy Version : 7.0.3 I would like to get the url from a process in a JAX-RS Rest Resource but I get an Exception with this code:</p> <pre><code>Ivy.html().startref("Functional Processes/dis/videoIdentification/start.ivp") </code></pre> <p>The JAX-RS Resource is located in the same project as the process. It works without problem in a Process (IvyScript Step).</p> <p>I can imagine that the fact the code is in a JAX-RS Resource does not allow accessing some Ivy resources like the ProjectModelVersion Provider. Is there a workaround for that? Or do I have to compute the url more manually with the InetAddress and so on ? By the way this code works in this resource: Ivy.html().applicationHomeRef()</p> <p>Thanks in advance </p> <p>Here the StackTrace I get:</p> <pre><code> com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error in custom provider, java.lang.NullPointerException while locating ch.ivyteam.ivy.workflow.internal.di.CaseProjectProcessModelVersionProvider while locating ch.ivyteam.ivy.application.IProcessModelVersion annotated with interface ch.ivyteam.ivy.scope.restricted.FromCaseScope Caused by: java.lang.NullPointerException at ch.ivyteam.ivy.workflow.internal.di.CaseProjectProcessModelVersionProvider.get(CaseProjectProcessModelVersionProvider.java:18) at ch.ivyteam.ivy.workflow.internal.di.CaseProjectProcessModelVersionProvider.get(CaseProjectProcessModelVersionProvider.java:1) at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81) at com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72) at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:61) at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:62) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1019) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1015) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1050) at ch.ivyteam.di.restricted.DiInjector.getInstance(DiInjector.java:77) at </code></pre>Emmanuel CombaWed, 18 Apr 2018 15:06:23 -0400https://answers.axonivy.com/questions/3218/how-to-get-the-url-of-a-process-start-within-a-jax-rs-classprocessurlivyrest