Questions asked by lphieuhttps://answers.axonivy.com/questions/asked-by/1161/lphieu/?type=rssQuestions asked by <a href="/users/1161/lphieu" >lphieu</a>enFri, 17 Jan 2020 01:36:26 -0500Migrate running cases to new PMVhttps://answers.axonivy.com/questions/4323/migrate-running-cases-to-new-pmv<p>Hi Ivy team</p> <p>At the moment, we deploy our application with multiple PMVs, each PMV has its own running case. And now we change our mind, we don't want to deploy multiple PMV anymore, we want to make sure the Ivy engine contains only the lastest PMV. For that reason, we want to remove the old PMV first.</p> <p>But when we remove the deprecated pmv, adminUI throws the message that I can't remove deprecated PMV. We know that we should resolve all running tasks to make deprecated PMV become archived and removable. But the are a ton of running tasks for PMV. </p> <p>So our question is: Is there any way to remove/resolve those tasks automatically or at least migrate that task to the lastest PMV? Thank for any help</p>lphieuFri, 17 Jan 2020 01:36:26 -0500https://answers.axonivy.com/questions/4323/migrate-running-cases-to-new-pmvpmvivyMultiple deploy process modules by a single zip filehttps://answers.axonivy.com/questions/4306/multiple-deploy-process-modules-by-a-single-zip-file<p>Dear Ivy team. At the moment, we're using Ivy v 7.0.11 and we need to deploy multiple process modules to the specific Ivy application by using "File based deployment" approach (<a href="http://developer.axonivy.com/doc/7.0.11/EngineGuideHtml/administration.html#administration.deployment).">http://developer.axonivy.com/doc/7.0.11/EngineGuideHtml/administration.html#administration.deployment).</a> It worked well when we only deploy single iar file. But when we create a zip file that contains multiple iars file inside, it got the problem.</p> <p>Our zip file content: <img alt="alt text" src="http://cloud.screenpresso.com/NDJXe/2020-01-02_13h42_30.png"></p> <p>Deployment error log:</p> <pre><code>Fatal error during deploying of project 'app.zip' to application 'Application' java.lang.NullPointerException at ch.ivyteam.ivy.deployment.ProjectDeploymentValidator.isLibraryMissing(ProjectDeploymentValidator.java:165) at ch.ivyteam.ivy.deployment.ProjectDeploymentValidator.prepareIvyProject(ProjectDeploymentValidator.java:146) at ch.ivyteam.ivy.deployment.ProjectDeploymentValidator.prepareIvyProject(ProjectDeploymentValidator.java:82) at ch.ivyteam.ivy.deployment.internal.auto.AutoProjectDeployer.validate(AutoProjectDeployer.java:81) at ch.ivyteam.ivy.deployment.internal.auto.AutoProjectDeployer.deploy(AutoProjectDeployer.java:46) at ch.ivyteam.ivy.deployment.internal.auto.DeploymentDirectoryScanner.handleFile(DeploymentDirectoryScanner.java:85) at ch.ivyteam.ivy.deployment.internal.auto.DeploymentDirectoryScanner.fileCreated(DeploymentDirectoryScanner.java:75) at ch.ivyteam.ivy.deployment.internal.auto.ScannerThread.handleEvent(ScannerThread.java:191) at ch.ivyteam.ivy.deployment.internal.auto.ScannerThread.scanForFiles(ScannerThread.java:164) at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1310) at ch.ivyteam.ivy.deployment.internal.auto.ScannerThread.run(ScannerThread.java:144) at ch.ivyteam.ivy.deployment.internal.auto.ScannerThread.access$0(ScannerThread.java:140) at ch.ivyteam.ivy.deployment.internal.auto.ScannerThread$1.run(ScannerThread.java:134) </code></pre> <p>So is there any way to deploy multiple process modules by a single zip file with Ivy 7.0.11? Waiting for your response and many thank for your help</p>lphieuThu, 02 Jan 2020 03:19:36 -0500https://answers.axonivy.com/questions/4306/multiple-deploy-process-modules-by-a-single-zip-fileivydeploymentHow to override css from child module to parent modulehttps://answers.axonivy.com/questions/3763/how-to-override-css-from-child-module-to-parent-module<p>Dear Ivy team.</p> <p>I just wanna ask you that is there any possibility to override CSS from child module to parent module.</p> <p>For example, we are having 2 ivy projects: project Parent and project Child, Child depends on Parent and both of them are deployed in the same application.</p> <p>We need to change some style for both of them but the problem is we don't have right to modify project Parent. So in project Child, we defined some custom CSS styles and import it in XHTML page. This way works well for only views that belong to Child project, but with the view in Parent project, it can't work because we can't inject our CSS to Parent project.</p> <p>Our attempt was creating a custom theme as this suggestion: <a href="https://answers.axonivy.com/questions/12/how-to-create-my-own-theme-for-html-user-dialogs">https://answers.axonivy.com/questions/12/how-to-create-my-own-theme-for-html-user-dialogs</a> and put this jar file under Designer/Engine folder. The way just works perfectly, our custom CSS style can apply for both Parent and Child. But the small problem is whenever we change our style, we need to build the jar and put it in Designer/Engine manually, it's really not convenient.</p> <p>So to overcome this inconvenience, we try to put our custom theme in project Child with the same structure of custom PrimeFaces theme like this: <img alt="alt text" src="https://answers.axonivy.com/upfiles/Image1.png"></p> <p>With this way still only work for Child project, not Parent project because when we start a view in Parent project, we got a problem: FacesException: Error loading css, cannot find "theme.css" resource of "primefaces-serenity-bluegrey" library</p> <p>that error comes from org.primefaces.renderkit.HeadRenderer <img alt="alt text" src="https://answers.axonivy.com/upfiles/Image2.png"></p> <p>After debugging, I figure out that Ivy also takes part in the resource loading process: <img alt="alt text" src="https://answers.axonivy.com/upfiles/Image3.png"></p> <p>Unfortunately, we can't see what inside that class and don't know is there any possibility to inject our custom CSS into that process. I know that inject CSS from child to parent is something weird but actually, we can't find an alternative way.</p> <p>So I just wanna ask you that is there any possibility to inject CSS from child to parent?</p> <p>Thank in advance!</p>lphieuFri, 05 Apr 2019 07:34:29 -0400https://answers.axonivy.com/questions/3763/how-to-override-css-from-child-module-to-parent-modulethemecssHow to use Gradle with Ivy projecthttps://answers.axonivy.com/questions/3730/how-to-use-gradle-with-ivy-project<p>Dear Ivy team</p> <p>Currently, our Ivy projects are using Maven as the build system, but with Maven, the build process (include testing) is very slow. And I know that by using Gradle, it will help us with this problem by boosting the build process much faster than Maven.</p> <p>So I just wanna try to apply Gradle to our Ivy projects to see how much it improves our build process. Unfortunately, I got a problem with Axon.ivy Project Build Plugin. As far as I know that we need to use "Project Build Plugin" to resolve Ivy's dependencies but that plugin doesn't support Gradle. So is there any possibility to apply Gradle with Ivy project? </p> <p>Thank in advance</p>lphieuThu, 07 Mar 2019 23:23:39 -0500https://answers.axonivy.com/questions/3730/how-to-use-gradle-with-ivy-projectmavenjavaivy