Questions Tagged With ivyhttps://answers.axonivy.com/tags/ivy/?type=rss&user=Emmanuel%20Combaquestions tagged <span class="tag">ivy</span>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-databasedatabaseivydeploymentHow 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