Hi all

i have a sample process like this: alt text 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,

If i change this process to continue with endProcess element (after script httpRedirect), it throw exception:

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)

So, to deal with this case, i need to reset task manually?

asked 29.12.2016 at 05:04

trungdv's gravatar image

trungdv
(suspended)
accept rate: 52%


To redirect a user to another page at the end of a process, the End Page element is your choice. It will End the task (and the Case) and redirects to linked page. The linked page can be a JSP page and in this JSP page you can forward/redirect to the desired destination.

link

answered 29.12.2016 at 09:41

Flavio%20Sadeghi's gravatar image

Flavio Sadeghi ♦♦
(suspended)
accept rate: 75%

can we make a dynamic redirecting on jsp page? depending on condition i can navigate to different pages. that's why i want to use java code to redirect instead of endpage

(29.12.2016 at 12:13) trungdv trungdv's gravatar image

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×37

Asked: 29.12.2016 at 05:04

Seen: 2,059 times

Last updated: 29.12.2016 at 12:13