Questions Tagged With urlhttps://answers.axonivy.com/tags/url/?type=rssquestions tagged <span class="tag">url</span>enThu, 28 Nov 2019 04:03:49 -0500Redirect to Taskhttps://answers.axonivy.com/questions/4223/redirect-to-task<p>Hi all,</p> <p>Is it possible another web to redirect to a task in axon ivy? What I mean is, I have start task url generated (<a href="http://localhost:8081/ivy/pro/designer/Project$1/16E8DF16E2CAE91C/16E8DF16E2CAE91C-f2/TaskA.iot?taskId=7)">http://localhost:8081/ivy/pro/designer/Project$1/16E8DF16E2CAE91C/16E8DF16E2CAE91C-f2/TaskA.iot?taskId=7)</a> When the external web app redirects to this link what I get is : Dialog instance with id ...is not available any more. Just the link itself works perfectly. Also, can we pass a parameter in the task start url (?taskId=123&amp;parameter=something)? I know that this is possible where we start a process but is it possible to do so for a task?</p> <p>Thanks!</p> <p>Alex</p>a_v_aThu, 28 Nov 2019 04:03:49 -0500https://answers.axonivy.com/questions/4223/redirect-to-taskurltaskHow 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-classprocessurlivyrestModify URL on address bar of browser generate from Ivyhttps://answers.axonivy.com/questions/3092/modify-url-on-address-bar-of-browser-generate-from-ivy<p>Hi All.</p> <p>Is it possible to modify Ivy generated URLs ? For example. I have process user login. User Login Processes/UserLogin/userLogin.ivp when I start the process it redirects to the page: <a href="http://domain.com/ivy/faces/instances/Portal/applicaton/161544002F5E30CF/applicationcom/Login.xhtml">http://domain.com/ivy/faces/instances/Portal/applicaton/161544002F5E30CF/applicationcom/Login.xhtml</a></p> <p>I would like to modify the second link. <a href="http://domain.com/ivy/faces/instances/Portal/applicaton/161544002F5E30CF/applicationcom/Login.xhtml">http://domain.com/ivy/faces/instances/Portal/applicaton/161544002F5E30CF/applicationcom/Login.xhtml</a> to <a href="http://domain.com/login.">http://domain.com/login.</a></p> <p>How to config ivy to make <a href="http://domain.com/login">http://domain.com/login</a> doesn't redirect to .xhtml because of the problem:</p> <p>Many users will bookmark the login page but it gets directly resolved into an xhtml page which leads to problems in Ivy. Next time the user visits the bookmark the login xhtml will have issues. Sharing links will not work either because users will copy&amp;paste the xhtml files. Thank you!</p>nkdinhThu, 01 Feb 2018 21:04:38 -0500https://answers.axonivy.com/questions/3092/modify-url-on-address-bar-of-browser-generate-from-ivyurlHow to get url for Task in Emailhttps://answers.axonivy.com/questions/2571/how-to-get-url-for-task-in-email<p>Hello Ivy Team,</p> <p>I`m building a process for overriding the default email notifications as described here: <a href="http://developer.axonivy.com/doc/latest/EngineGuideHtml/administration.html#administration-applicationdefaults">http://developer.axonivy.com/doc/latest/EngineGuideHtml/administration.html#administration-applicationdefaults</a></p> <p>I have a problem to build an URL to the task.</p> <p>I`m trying this ways, but no luck:</p> <pre><code>in.task = ivy.wf.findTask(in.notificationTaskId); in.taskUrl = ivy.html.taskstartref(in.task); in.taskUrl = ivy.var.FQDN + in.task.getFullRequestPath() + "?taskId=" + in.notificationTaskId.toString(); </code></pre> <p>the URL is valid but the Id of the task is different than in the Task List view.</p> <p>I`m using version 6.4</p> <p>Am I doing something wrong or this is a bug in this version ? p.s. it does not work bot on the Designer and on the Server</p> <p>Best Regards, Yordan</p>Stelt0Thu, 06 Apr 2017 08:30:18 -0400https://answers.axonivy.com/questions/2571/how-to-get-url-for-task-in-emailurltaskemail