Hi all, In a JSF Dialog we can start a task dynamically with:
We can also start an IProcess dynamically with something like that:
Now we would like to combine both to start a process dynamically that should in turn start a task.
The process can be started from within the JSF Dialog.
The following code does not work as well (fails silently):
We tried also:
Here we get:IllegalStateException: Cannot change buffer size after data has been written Cannot set content type. Response already committed Is there a possibility to achieve what we try to do? Like for the process-start I have tried to find a proper IRequestHandler for starting a task. I have not found it. Thanks a lot in advance Emmanuel asked 25.06.2015 at 23:25 Emmanuel |
Hello Flavio, Thanks for your help, so I post the solution for others here.
Thanks again Flavio! Emmanuel answered 05.07.2015 at 22:39 Emmanuel |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 25.06.2015 at 23:25
Seen: 2,570 times
Last updated: 05.07.2015 at 22:39
Hello Emmanuel, could you describe your use case? Basically I would suggest to use an End Page to forward a workflow/client to the next process.
Hello Flavio,
Sorry for that long and not very "understandable" question ;) To make it short: is there a way to start a Task programmatically in such a situation: 1. The User clicks on a Displayed Task (HTML Dialog - JSF). 2. This triggers a Process Start dynamically, which gets as parameter the selected TaskId. 3. In this process we can find the Task with the TaskId and we would like to start it and display it to the user. As the Task is started in a Process that is not part of the HTML-JSF Dialog Logic, using "redirect" techniques described in the question do not work. Any Idea?
Cheers
@Emmanuel: Why you can't use an End-Page for the redirect? The End Page does end the current running process and task properly. With a redirect in the middle of a process, the process is interrupted unexpected which (could) cause in unexpected behaviour/errors.