Questions Tagged With processhttps://answers.axonivy.com/tags/process/?type=rss&user=trungdvquestions tagged <span class="tag">process</span>enThu, 29 Dec 2016 05:04:17 -0500TaskState after sending redirecthttps://answers.axonivy.com/questions/2335/taskstate-after-sending-redirect<p>Hi all</p> <p>i have a sample process like this: <img alt="alt text" src="http://answers.axonivy.com/upfiles/task-state-redirect.png"> In there i have a ivy task, after i close user dialog, i want to redirect to another start process by using HttpResponse (not use endpage element). With some small investigation i see the task state after i send redirect still be RESUMED, </p> <p>If i change this process to continue with endProcess element (after script httpRedirect), it throw exception:</p> <pre><code>java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:494) at javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:138) at ch.ivyteam.ivy.webserver.internal.duplicate.DuplicateAwareHttpResponse.sendRedirect(DuplicateAwareHttpResponse.java:118) at ch.ivyteam.ivy.request.impl.HttpResponse.sendRedirect(HttpResponse.java:61) at ch.ivyteam.ivy.bpm.exec.restricted.PageRedirector.setResponseHeadersAndSendRedirect(PageRedirector.java:77) at ch.ivyteam.ivy.bpm.exec.restricted.PageRedirector.redirectToDefaultEndPage(PageRedirector.java:58) at ch.ivyteam.ivy.bpm.exec.internal.event.end.task.TaskEndExecutor$TaskEndRequestEndExecutor.redirectToEndPage(TaskEndExecutor.java:100) at ch.ivyteam.ivy.bpm.exec.internal.event.end.task.TaskEndExecutor$TaskEndRequestEndExecutor.execute(TaskEndExecutor.java:75) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.executeRequestEndExecutor(RequestProcessor.java:188) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.handleRequest(RequestProcessor.java:80) at ch.ivyteam.ivy.bpm.engine.internal.BpmEngine.handleNormalRequest(BpmEngine.java:191) </code></pre> <p>So, to deal with this case, i need to reset task manually?</p>trungdvThu, 29 Dec 2016 05:04:17 -0500https://answers.axonivy.com/questions/2335/taskstate-after-sending-redirectprocessHow to get BpmEngine belong to a Process Model Versionhttps://answers.axonivy.com/questions/2329/how-to-get-bpmengine-belong-to-a-process-model-version<p>Hi all, in module A, I have a function that return a BpmEngine as:</p> <pre><code>IBpmEngine engine = DiCore.getGlobalInjector().getInstance(IBpmEngine.class); </code></pre> <p>With this line of code i get instance which belong to module A somehow.</p> <p>Now i also want to get IBpmEngine from other related modules (example: my module A depend on module B). I check the code then see each BpmEngine has a different id, combine between project model name and project model version: (class <code>ch.ivyteam.ivy.bpm.engine.internal.BpmEngine</code>)</p> <pre><code>this.id = "BPM engine " + this.getProcessModelVersion().getApplication().getName() + "/" + this.getProcessModelVersion().getVersionName(); </code></pre> <p>Is there anyway to get BpmEngine of other related modules?</p> <p>P/S: somehow this question is related to this <a href="http://answers.axonivy.com/questions/2244/can-we-monitor-ivy-process-programmatically">post</a> where i want to register listener for other module.</p>trungdvWed, 28 Dec 2016 02:52:32 -0500https://answers.axonivy.com/questions/2329/how-to-get-bpmengine-belong-to-a-process-model-versionprocessCan we monitor ivy process programmatically?https://answers.axonivy.com/questions/2244/can-we-monitor-ivy-process-programmatically<p>Hi all</p> <p>i have a sample callable subprocess as below: <img alt="alt text" src="http://answers.axonivy.com/upfiles/Untitled_ifhSuXB.png"></p> <p>With SubProcessCall util, i can trigger to run it and also control input&amp;output. So i want to go a step futher to monitor that such process. Is there any API or util that could help me to monitor this process? like when process come to step <em>Do first thing</em>, i will be notified and i can access variable <strong>in/out</strong> or just simple logging out the name of that ivy element.? Also the same question for other kind of process (sub process/start process/...)</p> <p>Thanks all</p>trungdvTue, 06 Dec 2016 06:42:46 -0500https://answers.axonivy.com/questions/2244/can-we-monitor-ivy-process-programmaticallyprocess