<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Get ID of ended task in JSP End Page</title><link>https://answers.axonivy.com/questions/1339/get-id-of-ended-task-in-jsp-end-page</link><description>&lt;p&gt;When overriding Default Pages as described in Server Guide (&lt;a href="http://developer.axonivy.com/doc/5.0.latest/ServerGuideHtml/ivy.server.concepts.introduction.html)"&gt;http://developer.axonivy.com/doc/5.0.latest/ServerGuideHtml/ivy.server.concepts.introduction.html)&lt;/a&gt; 
I have access to ID of the ended task (endedTaskId Parameter).&lt;/p&gt;
&lt;p&gt;In my use case I need special end pages for some tasks. So I prefer using a individual JSP end page for each task. Is is possible to get the ID of the ended task in the JSP, too?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1339/get-id-of-ended-task-in-jsp-end-page" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 28 May 2015 10:53:09 -0400</lastBuildDate><item><title>Answer by Timo Rupp</title><link>https://answers.axonivy.com/questions/1339/get-id-of-ended-task-in-jsp-end-page/1340</link><description>&lt;p&gt;&lt;strong&gt;Information provided by Dominik from Ivyteam:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You can get it by Request Parameter 'taskId'. This parameter is always provided when redirecting to a WebPage. Use it like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;%= request.getParameter("taskId") %&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Additionally you can use the API to get the ID and other data:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;%= ivy.wf.getCurrentTask().getId() %&amp;gt;
&amp;lt;%= ivy.wf.getCurrentTask().getState() %&amp;gt;
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Timo Rupp</dc:creator><pubDate>Thu, 28 May 2015 10:53:09 -0400</pubDate><guid>https://answers.axonivy.com/questions/1339/get-id-of-ended-task-in-jsp-end-page/1340</guid></item></channel></rss>